kusaw completion
Generate the autocompletion script for kusaw for the specified shell. See each sub-command's help for details on how to use the generated script.
kusaw completion
Generate the autocompletion script for kusaw for the specified shell. See each sub-command's help for details on how to use the generated script.
Usage
kusaw completion [flags]Flags
| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for completion |
Subcommands
kusaw completion bash
Generate the autocompletion script for the bash shell.
This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager.
To load completions in your current shell session:
source <(kusaw completion bash)To load completions for every new session, execute once:
Linux:
kusaw completion bash > /etc/bash_completion.d/kusawmacOS:
kusaw completion bash > $(brew --prefix)/etc/bash_completion.d/kusawYou will need to start a new shell for this setup to take effect.
kusaw completion bash| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for bash |
--no-descriptions | bool | false | disable completion descriptions |
Example:
kusaw completion bashkusaw completion fish
Generate the autocompletion script for the fish shell.
To load completions in your current shell session:
kusaw completion fish | sourceTo load completions for every new session, execute once:
kusaw completion fish > ~/.config/fish/completions/kusaw.fishYou will need to start a new shell for this setup to take effect.
kusaw completion fish [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for fish |
--no-descriptions | bool | false | disable completion descriptions |
Example:
kusaw completion fishkusaw completion powershell
Generate the autocompletion script for powershell.
To load completions in your current shell session:
kusaw completion powershell | Out-String | Invoke-ExpressionTo load completions for every new session, add the output of the above command to your powershell profile.
kusaw completion powershell [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for powershell |
--no-descriptions | bool | false | disable completion descriptions |
Example:
kusaw completion powershellkusaw completion zsh
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrcTo load completions in your current shell session:
source <(kusaw completion zsh)To load completions for every new session, execute once:
Linux:
kusaw completion zsh > "${fpath[1]}/_kusaw"macOS:
kusaw completion zsh > $(brew --prefix)/share/zsh/site-functions/_kusawYou will need to start a new shell for this setup to take effect.
kusaw completion zsh [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for zsh |
--no-descriptions | bool | false | disable completion descriptions |
Example:
kusaw completion zshExit codes
| Code | Name | Description |
|---|---|---|
| 0 | ok | Success. |
| 1 | error | Runtime error. |
| 2 | usage | Usage or validation error. |
| 3 | rejected | Control request rejected; the error string is printed verbatim. |
| 4 | not picked up | Control request not picked up within the wait time while serve runs. |
Example
kusaw completion bash