color_tools.cli_commands.handlers.color

Color command handler - Search and query CSS colors.

color_tools.cli_commands.handlers.color.handle_color_command(args, json_path=None)[source]

Handle the ‘color’ command - search and query CSS colors.

Parameters:
  • args (Namespace) – Parsed command-line arguments

  • json_path (Path | str | None) – Optional custom data directory

Return type:

None

Exits:

0: Success 1: Color not found or error 2: Invalid input