tinymonitor completion¶
Generate shell autocompletion scripts for TinyMonitor commands.
Usage¶
Supported Shells¶
| Shell | Command |
|---|---|
| Bash | tinymonitor completion bash |
| Zsh | tinymonitor completion zsh |
| Fish | tinymonitor completion fish |
| PowerShell | tinymonitor completion powershell |
Installation¶
Bash¶
Zsh¶
First, ensure completion is enabled in your ~/.zshrc:
Then add the completion:
Or for Oh My Zsh:
Fish¶
PowerShell¶
Add to your PowerShell profile:
To make it permanent, add the above line to your $PROFILE file.
Usage After Installation¶
Restart your shell or source the completion file. Then use Tab to autocomplete:
tinymonitor ser<TAB>
# Completes to: tinymonitor service
tinymonitor service <TAB>
# Shows: install status uninstall
tinymonitor update --<TAB>
# Shows: --check --yes
Updating Completions¶
After updating TinyMonitor, regenerate the completion scripts to include any new commands or flags: