clan-core/pkgs/clan-cli/clan_cli/vms/__init__.py
Jörg Thalheim 884c200061
All checks were successful
checks-impure / test (pull_request) Successful in 1m34s
checks / test (pull_request) Successful in 2m51s
rename vms create to vms run
2023-11-24 15:00:08 +01:00

19 lines
535 B
Python

import argparse
from .inspect import register_inspect_parser
from .run import register_run_parser
def register_parser(parser: argparse.ArgumentParser) -> None:
subparser = parser.add_subparsers(
title="command",
description="command to execute",
help="the command to execute",
required=True,
)
register_inspect_parser(
subparser.add_parser("inspect", help="inspect the vm configuration")
)
register_run_parser(subparser.add_parser("run", help="run a VM from a machine"))