command_entry_point
Defines the abstract base class for Merlin CLI commands.
This module provides the CommandEntryPoint abstract base class that all
Merlin command implementations must inherit from. It standardizes the interface
for adding command-specific argument parsers and processing CLI command logic.
CommandEntryPoint
Bases: ABC
Abstract base class for a Merlin CLI command entry point.
Methods:
| Name | Description |
|---|---|
add_parser |
Adds the parser for a specific command to the main |
process_command |
Executes the logic for this CLI command. |
Source code in merlin/cli/commands/command_entry_point.py
add_parser(subparsers)
abstractmethod
Add the parser for this command to the main ArgumentParser.
Source code in merlin/cli/commands/command_entry_point.py
process_command(args)
abstractmethod
Execute the logic for this CLI command.