This project auto-generates shell completion files for docopt scripts.
After installing the package, run:
docopt-completion <script-name>
The utility will try to run the given script with --help. The given script must be installed, and print a docopt-compatible usage text and return 0 as the exit code. The utility will then generate a completion file suitable for bash or zsh (depending on the shell installed on the system) and place that file in the correct place for the shell to use. After running the script, tab-completion in the shell will auto-complete the available commands of the given script.
Note that not all system configurations are automatically supported. The script looks for known ZSH and BASH paths, but on some systems these paths are configured differently. In this case, you may "force" the generation of the completion file in the local directory, and place it manually in a path known to your completion system. Generation can be forced by running the command with one of the flags:
docopt-completion <docopt-script> [--manual-zsh | --manual-bash]
For zsh, completion paths can be listed by running the command echo $fpath
.
Also note that some old bash systems may not support tab auto-completion. The package 'bash-completion' must be installed for bash tab-completion to work.
Run the following:
easy_install -U infi.projector
projector devenv build