Re-exports§
pub use completion::Completion;pub use completion::CompletionGroup;pub use history::History;
Modules§
- completion
- The module for CLI completion output.
- core
- The module defining CLI objects, including
Command,FlagandArg. - error
- Module defining the error types for this crate.
- gen_
prelude - helper
- Helper functions/macros to make your life easier.
- history
- The module for CLI history.
- id
- Module for IDs of CLI objects that can be used to lookup history in
History.
Structs§
- Config
- An object to configure how the code-gen should work e.g. to ignore some certain flags or subcommands.
Enums§
- Shell
- Enum to represent different shell. Use
str::parseto create it.
Functions§
- generate
- Generate the scaffold for your completion based on
clap::Commandobject. After importing the generated code, you can callcore::Command::supplementto get the completion result.