Skip to content

Commit

Permalink
fix: simplify prompt for prune
Browse files Browse the repository at this point in the history
Signed-off-by: Yves Brissaud <[email protected]>
  • Loading branch information
eunomie committed Oct 14, 2024
1 parent 67f4404 commit f0e1a71
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/commands/cache/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ func pruneNewCmd(dockerCli command.Cli) *cobra.Command {
cache := runkit.NewLocalCache(dockerCli)

if !force {
err := huh.NewForm(
huh.NewGroup(
huh.NewConfirm().
Title("Are you sure you want to remove all cache entries?").
Value(&force))).Run()
err := huh.NewConfirm().
Title("Are you sure you want to remove all cache entries?").
Value(&force).Run()
if err != nil {
return err
}
Expand Down

0 comments on commit f0e1a71

Please sign in to comment.