mirror of
https://ak-git.vectorsigma.ru/terghalin/metalcheck-cli.git
synced 2025-11-02 02:17:38 +09:00
25 lines
652 B
Python
25 lines
652 B
Python
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()
|