CLI Types
Type definitions for the CLI application.
- class oduit.cli_types.OutputFormat(*values)[source]
-
Output format options.
- TEXT = 'text'
- JSON = 'json'
- class oduit.cli_types.AddonTemplate(*values)[source]
-
Available addon templates.
- BASIC = 'basic'
- WEBSITE = 'website'
- class oduit.cli_types.ShellInterface(*values)[source]
-
Available shell interfaces.
- IPYTHON = 'ipython'
- PTPYTHON = 'ptpython'
- BPYTHON = 'bpython'
- PYTHON = 'python'
- class oduit.cli_types.SortingChoice(*values)[source]
-
Sorting options for addon lists.
- ALPHABETICAL = 'alphabetical'
- TOPOLOGICAL = 'topological'
- class oduit.cli_types.DevFeature(*values)[source]
-
Development features for –dev option.
For development purposes only. Do not use in production.
- ALL = 'all'
- XML = 'xml'
- RELOAD = 'reload'
- QWEB = 'qweb'
- IPDB = 'ipdb'
- PDB = 'pdb'
- PUDB = 'pudb'
- WERKZEUG = 'werkzeug'
- class oduit.cli_types.LogLevel(*values)[source]
-
Odoo log levels.
- INFO = 'info'
- DEBUG = 'debug'
- WARN = 'warn'
- ERROR = 'error'
- CRITICAL = 'critical'
- class oduit.cli_types.GlobalConfig(env: str | None = None, non_interactive: bool = False, format: OutputFormat = OutputFormat.TEXT, verbose: bool = False, no_http: bool = False, env_config: dict[str, Any] | None = None, env_name: str | None = None, odoo_series: OdooSeries | None = None, config_source: str | None = None, config_path: str | None = None)[source]
Bases:
objectGlobal configuration context for commands.
- format: OutputFormat = 'text'
- __init__(env: str | None = None, non_interactive: bool = False, format: OutputFormat = OutputFormat.TEXT, verbose: bool = False, no_http: bool = False, env_config: dict[str, Any] | None = None, env_name: str | None = None, odoo_series: OdooSeries | None = None, config_source: str | None = None, config_path: str | None = None) None
- class oduit.cli_types.CommandResult(success: bool, message: str | None = None, exit_code: int = 0, data: dict[str, Any] | None = None)[source]
Bases:
objectResult of a command execution.
Enumerations
- class oduit.cli_types.OutputFormat(*values)[source]
-
Output format options.
- TEXT = 'text'
- JSON = 'json'
Data Classes
- class oduit.cli_types.GlobalConfig(env: str | None = None, non_interactive: bool = False, format: OutputFormat = OutputFormat.TEXT, verbose: bool = False, no_http: bool = False, env_config: dict[str, Any] | None = None, env_name: str | None = None, odoo_series: OdooSeries | None = None, config_source: str | None = None, config_path: str | None = None)[source]
Bases:
objectGlobal configuration context for commands.
- format: OutputFormat = 'text'
- __init__(env: str | None = None, non_interactive: bool = False, format: OutputFormat = OutputFormat.TEXT, verbose: bool = False, no_http: bool = False, env_config: dict[str, Any] | None = None, env_name: str | None = None, odoo_series: OdooSeries | None = None, config_source: str | None = None, config_path: str | None = None) None