Prompt before pruning with count
This commit is contained in:
3
main.go
3
main.go
@@ -129,7 +129,8 @@ func applyCmd(args []string) error {
|
|||||||
return removeLinks(stales)
|
return removeLinks(stales)
|
||||||
}
|
}
|
||||||
|
|
||||||
ok, err := promptYesNo("Found stale links. Prune them?", false)
|
fmt.Printf("Stale links found: %d\n", len(stales))
|
||||||
|
ok, err := promptYesNo("Prune them?", false)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user