move ssh cli to cli submodule

This commit is contained in:
Jörg Thalheim
2023-08-09 15:40:31 +02:00
parent 1f79a610d4
commit 8fea55da32
4 changed files with 30 additions and 29 deletions

View File

@@ -1,8 +1,9 @@
import argparse
import sys
from . import admin, secrets, ssh
from . import admin, secrets
from .errors import ClanError
from .ssh import cli as ssh_cli
has_argcomplete = True
try:
@@ -27,7 +28,7 @@ def main() -> None:
# warn(f"The config command does not work in the nix sandbox: {e}")
parser_ssh = subparsers.add_parser("ssh", help="ssh to a remote machine")
ssh.register_parser(parser_ssh)
ssh_cli.register_parser(parser_ssh)
parser_secrets = subparsers.add_parser("secrets", help="manage secrets")
secrets.register_parser(parser_secrets)