Generates a completion script for a shell from a Commander program. Hidden commands (such as __complete) are left out.
__complete
The root Commander command (polyman)
polyman
bash, zsh or fish
bash
zsh
fish
The script, ready to be sourced or saved
If the shell is not supported
process.stdout.write(generateCompletionScript(program, 'bash')); Copy
process.stdout.write(generateCompletionScript(program, 'bash'));
Generates a completion script for a shell from a Commander program. Hidden commands (such as
__complete) are left out.