example
Merlin CLI example command module.
This module defines the ExampleCommand class, which integrates into the Merlin
command-line interface to support downloading and setting up example workflows.
ExampleCommand
Bases: CommandEntryPoint
Handles example CLI command for downloading built-in Merlin examples.
Methods:
| Name | Description |
|---|---|
add_parser |
Adds the |
process_command |
Processes the CLI input and dispatches the appropriate action. |
Source code in merlin/cli/commands/example.py
add_parser(subparsers)
Add the example command parser to the CLI argument parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subparsers
|
ArgumentParser
|
The subparsers object to which the |
required |
Source code in merlin/cli/commands/example.py
process_command(args)
CLI command to set up or list Merlin example workflows.
This function either lists all available example workflows or sets
up a specified example workflow to be run in the root directory. The
behavior is determined by the workflow argument.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed command-line arguments, which may include:
|
required |