info
This module defines the DatabaseInfoCommand class, which implements the
database info subcommand for the Merlin CLI.
The database info subcommand provides users with summary details about the
currently active database configuration and contents. This includes backend type,
connection information, and a preview of stored entities.
The command is integrated into the broader Merlin CLI infrastructure through
the CommandEntryPoint base class and is registered under the top-level
database command group.
DatabaseInfoCommand
Bases: CommandEntryPoint
Handles the database info subcommand, which prints configuration
details about the currently active database backend.
Methods:
| Name | Description |
|---|---|
add_parser |
Adds the |
process_command |
Processes the CLI input and dispatches the appropriate action. |
Source code in merlin/cli/commands/database/info.py
add_parser(subparsers)
Add the database info subcommand 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/database/info.py
process_command(args)
Print information about the database to the console.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
An argparse Namespace containing user arguments. |
required |