Dynamic shell completion engine for CLI tools.
Provides a generic, tree-based completion system that completes one level
at a time (no eager subcommand chaining). The caller defines the command
tree via [CommandTree], and this crate handles:
- Walking the tree to find candidates for a given input
- Generating bash completion scripts
- Handling the
_<APP>_COMPLETE=bashandCOMPLETE=bashenv var callbacks
Usage
use ;
let tree = new
.command
.command
.group;
// In main():
if handle_complete_env