add(app): create python application
This commit is contained in:
24
cli/main.py
Normal file
24
cli/main.py
Normal file
@@ -0,0 +1,24 @@
|
||||
import click
|
||||
from .commands.metal import metal_nodes
|
||||
from .commands.vm import virtual_machines
|
||||
from .commands.k8s import kubernetes_nodes
|
||||
from .commands.export import export_data
|
||||
from .visual import visual_dashboard
|
||||
|
||||
|
||||
@click.group()
|
||||
def cli():
|
||||
"""
|
||||
Metal Check CLI: A command-line interface for managing and monitoring Metal Check resources.
|
||||
"""
|
||||
pass
|
||||
|
||||
# Register commands
|
||||
cli.add_command(metal_nodes, name="metal")
|
||||
cli.add_command(virtual_machines, name="vm")
|
||||
cli.add_command(kubernetes_nodes, name="k8s")
|
||||
cli.add_command(export_data, name="export")
|
||||
cli.add_command(visual_dashboard, name="visual")
|
||||
|
||||
if __name__ == "__main__":
|
||||
cli()
|
||||
Reference in New Issue
Block a user