Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.21 KB

File metadata and controls

54 lines (41 loc) · 1.21 KB

Shell Completions

Shell completions for framework_tool are auto-generated using clap_complete.

Regenerating

If you modify the CLI arguments, regenerate completions:

cargo build
./target/debug/framework_tool --generate-completions bash > completions/bash/framework_tool
./target/debug/framework_tool --generate-completions zsh > completions/zsh/_framework_tool
./target/debug/framework_tool --generate-completions fish > completions/fish/framework_tool.fish

Testing

framework_tool must be in your PATH for completions to work.

Bash:

export PATH="$PWD/target/debug:$PATH"
source completions/bash/framework_tool
framework_tool --<TAB>

Zsh:

export PATH="$PWD/target/debug:$PATH"
source completions/zsh/_framework_tool
framework_tool --<TAB>

Fish:

fish_add_path $PWD/target/debug
source completions/fish/framework_tool.fish
framework_tool --<TAB>

PowerShell:

framework_tool --generate-completions powershell | Invoke-Expression
framework_tool --<TAB>

Persistent Installation

Linux: Should be done by downstream package maintainers.

Windows/PowerShell:

framework_tool --generate-completions powershell >> $PROFILE