ml_switcheroo.cli.handlers.dev¶

CLI handlers for dev module.

Provides handlers for development utilities: Matrix rendering, Doc generation, and Test generation.

Functions¶

handle_matrix(→ int)

Handles 'matrix' command.

handle_docs(→ int)

Handles 'gen-docs' command.

handle_gen_tests(→ int)

Handles 'gen-tests' command.

Module Contents¶

ml_switcheroo.cli.handlers.dev.handle_matrix() → int¶

Handles ‘matrix’ command. Prints the compatibility table to stdout.

Returns:

0 on success.

Return type:

int

ml_switcheroo.cli.handlers.dev.handle_docs(source: str, target: str, out_path: pathlib.Path) → int¶

Handles ‘gen-docs’ command. Generates a migration guide Markdown file.

Parameters:
  • source – Source framework key.

  • target – Target framework key.

  • out_path – Output file path.

Returns:

0 on success.

Return type:

int

ml_switcheroo.cli.handlers.dev.handle_gen_tests(out: pathlib.Path) → int¶

Handles ‘gen-tests’ command. Generates physical test files for known APIs.

Parameters:

out – Output file path.

Returns:

0 on success.

Return type:

int