I have a script called ,
that takes a finite set of subcommands. Let's say this set is (foo bar qux)
. So the following are the acceptable CLI invocations this script:
, foo
, bar
, qux
(Each of the above may take further optional arguments to the right).
What is the minimal zsh completion code for this script that will work on macOS? Such that when I type ,
followed by <TAB>
, the shell will autocomplete with those three options: foo, bar, and qux.