MarketDeck docs

completion

Emit a shell-completion script for bash, zsh, or fish.

marketdeck completion writes a shell-completion script to stdout. Redirect it into your shell's completions directory and the next shell instance will tab-complete subcommands and the more common flags.

Usage#

marketdeck completion <bash|zsh|fish>

Install#

bash#

mkdir -p ~/.local/share/bash-completion/completions
marketdeck completion bash > ~/.local/share/bash-completion/completions/marketdeck

Open a new bash shell, or source the file you just wrote.

zsh#

Pick any directory on your $fpath (commonly ~/.zsh/completions):

mkdir -p ~/.zsh/completions
marketdeck completion zsh > ~/.zsh/completions/_marketdeck

Make sure your zshrc has the dir on fpath and that autoload -U compinit && compinit runs after it.

fish#

marketdeck completion fish > ~/.config/fish/completions/marketdeck.fish

Fish loads completions from that path automatically.

What it covers#

  • Top-level commands.
  • Subcommands (e.g. marketdeck wallets <TAB>list show state …).
  • Common flags (--format, --help).

Coverage of per-command flags is best-effort; obscure flags may not complete. Patches welcome.