Fix missing newline in zshrc, add test for hishtory redact prompting, and tag TODOs with plans

This commit is contained in:
David Dworken
2022-09-22 18:22:06 -07:00
parent bd70b68ffc
commit c6d4f1ef68
4 changed files with 26 additions and 4 deletions

View File

@ -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')