mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 15:15:08 +02:00
Fix missing newline in zshrc, add test for hishtory redact prompting, and tag TODOs with plans
This commit is contained in:
@ -968,7 +968,6 @@ func Redact(ctx *context.Context, query string, force bool) error {
|
||||
if force {
|
||||
fmt.Printf("Permanently deleting %d entries\n", len(historyEntries))
|
||||
} else {
|
||||
// TODO: Find a way to test the prompting
|
||||
fmt.Printf("This will permanently delete %d entries, are you sure? [y/N]", len(historyEntries))
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
resp, err := reader.ReadString('\n')
|
||||
|
Reference in New Issue
Block a user