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

YELLOW

RESET

LEGACY_COMMAND_MAP

Functions

emit_deprecation_warning(→ None)

Emit a deprecation warning to stderr.

create_legacy_command(→ Callable)

Create a legacy command that wraps the new command with deprecation warning.

register_legacy_commands(→ None)

Register all legacy commands with the CLI.

Module Contents

client.cli.legacy.YELLOW = '\x1b[93m'
client.cli.legacy.RESET = '\x1b[0m'
client.cli.legacy.LEGACY_COMMAND_MAP: Dict[str, Tuple[str, List[Tuple[str, str]]]]
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

client.cli.legacy.register_legacy_commands(cli: click.Group) None

Register all legacy commands with the CLI.

Each legacy command will emit a deprecation warning when invoked.