client.cli.legacy ================= .. py:module:: client.cli.legacy .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: client.cli.legacy.YELLOW client.cli.legacy.RESET client.cli.legacy.LEGACY_COMMAND_MAP Functions --------- .. autoapisummary:: client.cli.legacy.emit_deprecation_warning client.cli.legacy.create_legacy_command client.cli.legacy.register_legacy_commands Module Contents --------------- .. py:data:: YELLOW :value: '\x1b[93m' .. py:data:: RESET :value: '\x1b[0m' .. py:data:: LEGACY_COMMAND_MAP :type: Dict[str, Tuple[str, List[Tuple[str, str]]]] .. py:function:: emit_deprecation_warning(old_cmd: str, new_cmd: str) -> None Emit a deprecation warning to stderr. .. py:function:: 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. :param old_name: The old command name (e.g., 'workflow_status') :param new_path: The new command path (e.g., 'workflow status') :param arg_mappings: List of (old_arg, new_arg) tuples for argument translation .. py:function:: register_legacy_commands(cli: click.Group) -> None Register all legacy commands with the CLI. Each legacy command will emit a deprecation warning when invoked.