cli: machines update [MACHINE] -> machines update [MACHINES]

This commit is contained in:
Michael Hoang
2025-04-03 00:06:06 +09:00
parent 6ccdfe278d
commit 2db14e0ffa
3 changed files with 4 additions and 4 deletions

View File

@@ -352,7 +352,7 @@ Examples:
List all the machines managed by clan. List all the machines managed by clan.
$ clan machines update [MACHINES] $ clan machines update [MACHINES]
Will update the specified machine [MACHINE], if [MACHINE] is omitted, the command Will update the specified machines [MACHINES], if [MACHINES] is omitted, the command
will attempt to update every configured machine. will attempt to update every configured machine.
$ clan machines install [MACHINE] --target-host [TARGET_HOST] $ clan machines install [MACHINE] --target-host [TARGET_HOST]

View File

@@ -24,7 +24,7 @@ def register_parser(parser: argparse.ArgumentParser) -> None:
update_parser = subparser.add_parser( update_parser = subparser.add_parser(
"update", "update",
help="Update a machine", help="Update one or more machines",
epilog=( epilog=(
""" """
This subcommand provides an interface to update machines managed by clan. This subcommand provides an interface to update machines managed by clan.
@@ -32,7 +32,7 @@ This subcommand provides an interface to update machines managed by clan.
Examples: Examples:
$ clan machines update [MACHINES] $ clan machines update [MACHINES]
Will update the specified machine [MACHINE], if [MACHINE] is omitted, the command Will update the specified machines [MACHINES], if [MACHINES] is omitted, the command
will attempt to update every configured machine. will attempt to update every configured machine.
To exclude machines being updated `clan.deployment.requireExplicitUpdate = true;` To exclude machines being updated `clan.deployment.requireExplicitUpdate = true;`
can be set in the machine config. can be set in the machine config.

View File

@@ -278,7 +278,7 @@ def register_update_parser(parser: argparse.ArgumentParser) -> None:
nargs="*", nargs="*",
default=[], default=[],
metavar="MACHINE", metavar="MACHINE",
help="Machine to update. If no machine is specified, all machines will be updated.", help="Machine to update. If no machines are specified, all machines that don't require explicit updates will be updated.",
) )
add_dynamic_completer(machines_parser, complete_machines) add_dynamic_completer(machines_parser, complete_machines)