ria-toolkit-oss/ria_toolkit_oss_cli/cli.py

21 lines
548 B
Python
Raw Normal View History

G
2025-12-09 12:40:55 -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
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)