G
2025-12-09 12:40:55 -05:00
|
|
|
"""
|
G
2025-12-09 12:51:16 -05:00
|
|
|
This module contains the main group for the ria toolkit oss CLI.
|
G
2025-12-09 12:40:55 -05:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
import click
|
|
|
|
|
|
G
2025-12-09 12:51:16 -05:00
|
|
|
from ria_toolkit_oss_cli.ria_toolkit_oss import commands
|
G
2025-12-09 12:40:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@click.group()
|
|
|
|
|
@click.option("-v", "--verbose", is_flag=True, type=bool, help="Increase verbosity, especially useful for debugging.")
|
|
|
|
|
def cli(verbose):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Loop through project commands, binding them all to the CLI.
|
|
|
|
|
for command_name in dir(commands):
|
|
|
|
|
command = getattr(commands, command_name)
|
|
|
|
|
if isinstance(command, click.Command):
|
|
|
|
|
cli.add_command(command, name=command_name)
|