client.cli.legacy
Legacy command aliases with deprecation warnings.
This module provides backward-compatible aliases for the old CLI commands. Each legacy command emits a deprecation warning and delegates to the new Click-based command.
Attributes
Functions
|
Emit a deprecation warning to stderr. |
|
Create a legacy command that wraps the new command with deprecation warning. |
|
Register all legacy commands with the CLI. |
Module Contents
- client.cli.legacy.YELLOW = '\x1b[93m'
- client.cli.legacy.RESET = '\x1b[0m'
- client.cli.legacy.emit_deprecation_warning(old_cmd: str, new_cmd: str) None
Emit a deprecation warning to stderr.
- client.cli.legacy.create_legacy_command(old_name: str, new_path: str, arg_mappings: List[Tuple[str, str]]) Callable
Create a legacy command that wraps the new command with deprecation warning.
- Parameters:
old_name – The old command name (e.g., ‘workflow_status’)
new_path – The new command path (e.g., ‘workflow status’)
arg_mappings – List of (old_arg, new_arg) tuples for argument translation