CLI: Reorder flags of cluster management commands

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-09 15:58:04 +02:00
parent 9d968ab357
commit 84cb9d9855
4 changed files with 28 additions and 9 deletions

View File

@@ -20,10 +20,10 @@ var ClusterNodesRemoveCommand = &cli.Command{
Usage: "Deletes a node from the registry",
ArgsUsage: "<id|name>",
Flags: []cli.Flag{
YesFlag(),
&cli.BoolFlag{Name: "all-ids", Usage: "delete all records that share the same UUID (admin cleanup)"},
&cli.BoolFlag{Name: "drop-db", Aliases: []string{"d"}, Usage: "drop the nodes provisioned database and user after registry deletion"},
DryRunFlag("preview deletion without modifying the registry or database"),
&cli.BoolFlag{Name: "drop-db", Aliases: []string{"d"}, Usage: "drop the nodes provisioned database and user after registry deletion"},
&cli.BoolFlag{Name: "all-ids", Usage: "delete all records that share the same UUID (admin cleanup)"},
YesFlag(),
},
Hidden: true, // Required for cluster-management only.
Action: clusterNodesRemoveAction,