View Source DoIt.Completion (do_it v0.7.0)
Provides shell auto-completion functionality for DoIt CLI applications.
This module generates completion scripts for popular shells (bash, fish, zsh) and provides the completion logic for commands, subcommands, options, and arguments.
Summary
Functions
Completes values for command arguments.
Provides completions for the given command line arguments.
Completes values for a specific option.
Lists all available completions for debugging purposes.
Generates a bash completion script for the given main module and app name.
Generates a fish completion script for the given main module and app name.
Generates a zsh completion script for the given main module and app name.
Gets installation instructions for shell completion.
Parses the completion context from command line arguments.
Functions
Completes values for command arguments.
Provides completions for the given command line arguments.
This is the main entry point called by shell completion scripts.
Completes values for a specific option.
Lists all available completions for debugging purposes.
Generates a bash completion script for the given main module and app name.
Generates a fish completion script for the given main module and app name.
Generates a zsh completion script for the given main module and app name.
Gets installation instructions for shell completion.
Parses the completion context from command line arguments.
Returns one of:
{:command, command_path}
- completing a command or subcommand{:partial_command, partial, command_path}
- completing a partial command{:option_value, option_name, command_path}
- completing an option value{:argument, arg_index, command_path}
- completing an argument{:partial_option, partial, command_path}
- completing a partial option