|
Porytiles
|
Command that outputs shell completion scripts. More...
#include <command_completion.hpp>
Public Member Functions | |
| CompletionCommand (CLI::App &parent_app) | |
Public Member Functions inherited from Command | |
| virtual | ~Command ()=default |
| Command (CLI::App &parent_app, const std::string &name, const std::string &desc, const std::string &group) | |
| Command (const Command &)=delete | |
| Command & | operator= (const Command &)=delete |
| Command (Command &&)=delete | |
| Command & | operator= (Command &&)=delete |
| CLI::App & | get_app () const |
Command that outputs shell completion scripts.
CompletionCommand generates shell completion scripts for bash, zsh, and fish. It uses the generated CLI option metadata to provide completions for all config options, including enum choices.
The generated scripts also support dynamic tileset name completion by calling the list-tilesets subcommand. This provides context-sensitive filtering:
Definition at line 25 of file command_completion.hpp.
|
inlineexplicit |
Definition at line 27 of file command_completion.hpp.