CLI: Add cluster operations and management commands #98

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-09-16 18:09:09 +02:00
parent 5db044284b
commit dbf1650c1c
24 changed files with 1862 additions and 48 deletions

View File

@@ -50,7 +50,7 @@ func clientsRemoveAction(ctx *cli.Context) error {
return fmt.Errorf("client %s has already been deleted", clean.Log(id))
}
if !ctx.Bool("force") {
if !ctx.Bool("force") && !RunNonInteractively(false) {
actionPrompt := promptui.Prompt{
Label: fmt.Sprintf("Delete client %s?", m.GetUID()),
IsConfirm: true,