chore(cli): use cli.Cancelled when cancellikng the command to return non-zero exit code in all cases (#406)

Use `cli.Cancelled` in all cases where we cancel an operation instead of Printf && return nil

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2026-06-30 19:49:11 +10:00
committed by GitHub
parent 4b9ea43402
commit 6b41340f1d
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -92,8 +92,7 @@ func remove(ctx context.Context, uncli *cli.CLI, names []string, opts removeOpti
return fmt.Errorf("confirm removal: %w", err)
}
if !confirmed {
fmt.Println("Cancelled. No volumes were removed.")
return nil
return cli.Cancelled("Cancelled. No volumes were removed.")
}
}