Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

completions

Generate shell completion scripts for the tealeaf CLI.

Usage

tealeaf completions <SHELL>

Arguments

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

Installation

Bash

tealeaf completions bash > ~/.local/share/bash-completion/completions/tealeaf

Zsh

tealeaf completions zsh > ~/.zsh/completions/_tealeaf
# Then add ~/.zsh/completions to your fpath in ~/.zshrc:
# fpath=(~/.zsh/completions $fpath)

Fish

tealeaf completions fish > ~/.config/fish/completions/tealeaf.fish

PowerShell

tealeaf completions powershell > tealeaf.ps1
# Then add to your PowerShell profile:
# . path\to\tealeaf.ps1

Elvish

tealeaf completions elvish > ~/.config/elvish/lib/tealeaf.elv

What Gets Completed

Once installed, tab completion works for:

  • Subcommands: tealeaf com<TAB> completes to tealeaf compile
  • Flags: tealeaf compile --<TAB> shows --output and --help
  • Subcommand help: tealeaf help <TAB> lists all subcommands