CLI.Completion.App
bash
(Fn [(Ref CLI.App a), (Ref String b)] String)
(bash app prog)
generates a bash completion script for the App app, to be
installed for the program called prog.
The first word completes to the registered subcommand names (plus
--help/-h); after a subcommand has been given, completion continues with
that subcommand’s own flags and declared value sets, exactly as
bash does for a single Parser.
The script uses mapfile, so it needs bash 4 or newer.
fish
(Fn [(Ref CLI.App a), (Ref String b)] String)
(fish app prog)
generates a fish completion script for the App app, to be
installed for the program called prog.
The first word completes to the registered subcommand names, each shown with
its parser’s description, and to nothing else; once a subcommand has been
given, that subcommand’s own flags and declared value sets complete, exactly as
fish does for a single Parser.
zsh
(Fn [(Ref CLI.App a), (Ref String b)] String)
(zsh app prog)
generates a zsh completion script for the App app, to be
installed for the program called prog.
The first word completes to the registered subcommand names, each shown with
its parser’s description; after a subcommand has been given, completion
continues with that subcommand’s own flags and declared value sets, exactly as
zsh does for a single Parser.