Skip to content

oxo-flow completions#

Generate shell completions for oxo-flow. Completions provide tab-completion for subcommands, options, and file arguments.


Usage#

oxo-flow completions <SHELL>

Arguments#

Argument Description
<SHELL> Target shell: bash, zsh, fish, elvish, or powershell

Examples#

oxo-flow completions bash > ~/.local/share/bash-completion/completions/oxo-flow
source ~/.local/share/bash-completion/completions/oxo-flow
# Create completions directory if needed
mkdir -p ~/.zfunc

# Generate completions
oxo-flow completions zsh > ~/.zfunc/_oxo-flow

# Add to .zshrc (if not already present)
# fpath+=~/.zfunc
# autoload -Uz compinit && compinit
oxo-flow completions fish > ~/.config/fish/completions/oxo-flow.fish
oxo-flow completions elvish > ~/.config/elvish/lib/oxo-flow.elv
oxo-flow completions powershell > $PROFILE\..\Completions\oxo-flow.ps1
# Add to $PROFILE: . $PROFILE\..\Completions\oxo-flow.ps1

Notes#

  • Completions are generated by clap_complete based on the CLI definition
  • You typically only need to run this once after installation or after upgrading to a version with new subcommands
  • The output is written to stdout — redirect it to the appropriate completions file for your shell
  • Restart your shell or source the completions file for changes to take effect