mv clan-vm-manager to its own package
This commit is contained in:
parent
832c41df7e
commit
a838c4da17
@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from typing import Any, Optional, Sequence
|
from typing import Any, Optional, Sequence
|
||||||
|
|
||||||
from . import config, flakes, gtkui, machines, secrets, vms, webui
|
from . import config, flakes, machines, secrets, vms, webui
|
||||||
from .custom_logger import setup_logging
|
from .custom_logger import setup_logging
|
||||||
from .dirs import get_clan_flake_toplevel
|
from .dirs import get_clan_flake_toplevel
|
||||||
from .ssh import cli as ssh_cli
|
from .ssh import cli as ssh_cli
|
||||||
@ -64,9 +64,6 @@ def create_parser(prog: Optional[str] = None) -> argparse.ArgumentParser:
|
|||||||
|
|
||||||
subparsers = parser.add_subparsers()
|
subparsers = parser.add_subparsers()
|
||||||
|
|
||||||
parser_gtkui = subparsers.add_parser("gtkui", help="start gtkui")
|
|
||||||
gtkui.register_parser(parser_gtkui)
|
|
||||||
|
|
||||||
parser_flake = subparsers.add_parser(
|
parser_flake = subparsers.add_parser(
|
||||||
"flakes", help="create a clan flake inside the current directory"
|
"flakes", help="create a clan flake inside the current directory"
|
||||||
)
|
)
|
||||||
|
@ -28,7 +28,6 @@
|
|||||||
, tor
|
, tor
|
||||||
, git
|
, git
|
||||||
, nixpkgs
|
, nixpkgs
|
||||||
, copyDesktopItems
|
|
||||||
, qemu
|
, qemu
|
||||||
, gnupg
|
, gnupg
|
||||||
, e2fsprogs
|
, e2fsprogs
|
||||||
@ -134,7 +133,6 @@ python3.pkgs.buildPythonApplication {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools
|
setuptools
|
||||||
installShellFiles
|
installShellFiles
|
||||||
copyDesktopItems
|
|
||||||
];
|
];
|
||||||
propagatedBuildInputs = dependencies;
|
propagatedBuildInputs = dependencies;
|
||||||
|
|
||||||
|
@ -7,4 +7,5 @@ from .app import start_app
|
|||||||
|
|
||||||
|
|
||||||
def register_parser(parser: argparse.ArgumentParser) -> None:
|
def register_parser(parser: argparse.ArgumentParser) -> None:
|
||||||
|
parser = argparse.ArgumentParser(description="clan-vm-manager")
|
||||||
parser.set_defaults(func=start_app)
|
parser.set_defaults(func=start_app)
|
Loading…
Reference in New Issue
Block a user