odoo-work-cli completion¶
NAME¶
odoo-work-cli-completion - Generate the autocompletion script for the specified shell
SYNOPSIS¶
odoo-work-cli completion bash [--no-descriptions]
odoo-work-cli completion fish [--no-descriptions]
odoo-work-cli completion powershell [--no-descriptions]
odoo-work-cli completion zsh [--no-descriptions]
DESCRIPTION¶
Print the shell completion script of odoo-work-cli for bash, zsh, fish or PowerShell on standard output. It completes commands and flags.
The Homebrew cask installs the scripts for bash, zsh and fish; the release archives contain them in completions/. Load a script by hand as shown for each shell below.
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:
To load completions for every new session, execute once:
Linux:¶
macOS:¶
You will need to start a new shell for this setup to take effect.
fish¶
Generate the autocompletion script for the fish shell.
To load completions in your current shell session:
To load completions for every new session, execute once:
You will need to start a new shell for this setup to take effect.
powershell¶
Generate the autocompletion script for powershell.
To load completions in your current shell session:
To load completions for every new session, add the output of the above command to your powershell profile.
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:
To load completions in your current shell session:
To load completions for every new session, execute once:
Linux:¶
macOS:¶
You will need to start a new shell for this setup to take effect.
OPTIONS¶
--no-descriptions-
Disable completion descriptions.
flag; optional
GLOBAL OPTIONS¶
--backendBACKEND-
BACKEND: odoo or fake (offline, made-up data; env ODOO_WORK_CLI_BACKEND).
string; optional; default: odoo; env: ODOO_WORK_CLI_BACKEND
--configFILE-
Read only the config FILE (skip discovery).
string; optional
-h,--help- Print the help of the command and exit.
EXIT STATUS¶
0 on success, 1 on any error, including usage errors. The error is printed as "Error: TEXT" on standard error.
Error kinds this command can fail with:
validation- Invalid input: unknown flag, bad argument, malformed date, time or hours, a time in the future, an unknown project.
internal- Anything else: an unexpected Odoo response or a bug.
EXAMPLES¶
Load completion into the current zsh session:
Install it for every new bash session (Linux):