zsh completion module
There should be an openage completion module allowing to select the demos, tests and (soon) benchmarks.
This file is installed to /usr/share/zsh/site-functions but it should also be available for developers somehow (the least elegant solution would be sourcing that file manually).
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
As part of the dist folder? I guess that would be OK... but don't forget the bash completions file for our more poorly-equipped friends :P
Also what's the folder on OSX?
Note that you can add fpath=(~/git/openage/dist/zshcompletion $fpath) to your .zshrc before compinit
Also have a look at the genzshcomp python module, which we could use if argument parsing would ultimately happen in the python part of openage.
This completion file should ideally be created by the buildsystem:
- Definition of the available options and its callbacks in a separate file (or the
cmakelists.txt?) - Generation of the python/C++-code that handles the arguments
- Generation of the zsh/bash completion code