mirror of
https://github.com/photoprism/photoprism.git
synced 2025-10-05 08:47:12 +08:00
CLI: Add cluster operations and management commands #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user