clan-cli: minor fixes in ssh.py
This commit is contained in:
@@ -10,8 +10,6 @@ def ssh(
|
|||||||
password: Optional[str] = None,
|
password: Optional[str] = None,
|
||||||
ssh_args: list[str] = [],
|
ssh_args: list[str] = [],
|
||||||
) -> None:
|
) -> None:
|
||||||
if ssh_args is None:
|
|
||||||
ssh_args = []
|
|
||||||
nix_shell_args = []
|
nix_shell_args = []
|
||||||
password_args = []
|
password_args = []
|
||||||
if password:
|
if password:
|
||||||
@@ -68,12 +66,12 @@ def register_parser(parser: argparse.ArgumentParser) -> None:
|
|||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-j",
|
"-j",
|
||||||
"--json",
|
"--json",
|
||||||
help="specify the json file for ssh data (generated by starting the clan installer",
|
help="specify the json file for ssh data (generated by starting the clan installer)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-P",
|
"-P",
|
||||||
"--png",
|
"--png",
|
||||||
help="specify the json file for ssh data as the qrcode image (generated by starting the clan installer",
|
help="specify the json file for ssh data as the qrcode image (generated by starting the clan installer)",
|
||||||
)
|
)
|
||||||
# TODO pass all args we don't parse into ssh_args, currently it fails if arg starts with -
|
# TODO pass all args we don't parse into ssh_args, currently it fails if arg starts with -
|
||||||
parser.add_argument("ssh_args", nargs="*", default=[])
|
parser.add_argument("ssh_args", nargs="*", default=[])
|
||||||
|
|||||||
Reference in New Issue
Block a user