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

This commit is contained in:
Michael Hoang
2025-04-03 00:06:06 +09:00
parent 4697ef56c1
commit c7ba642a38
3 changed files with 4 additions and 4 deletions

View File

@@ -352,7 +352,7 @@ Examples:
List all the machines managed by clan.
$ 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.
$ 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",
help="Update a machine",
help="Update one or more machines",
epilog=(
"""
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:
$ 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.
To exclude machines being updated `clan.deployment.requireExplicitUpdate = true;`
can be set in the machine config.

View File

@@ -278,7 +278,7 @@ def register_update_parser(parser: argparse.ArgumentParser) -> None:
nargs="*",
default=[],
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)