Add missing new lines

This commit is contained in:
David Dworken 2022-09-21 19:13:53 -07:00
parent 3e89accf97
commit 486feb3fea
2 changed files with 3 additions and 3 deletions

View File

@ -961,7 +961,7 @@ func Redact(ctx *context.Context, query string, force bool) error {
return res.Error return res.Error
} }
if force { if force {
fmt.Printf("Permanently deleting %d entries", len(historyEntries)) fmt.Printf("Permanently deleting %d entries\n", len(historyEntries))
} else { } else {
// TODO: Find a way to test the prompting // TODO: Find a way to test the prompting
fmt.Printf("This will permanently delete %d entries, are you sure? [y/N]", len(historyEntries)) fmt.Printf("This will permanently delete %d entries, are you sure? [y/N]", len(historyEntries))

View File

@ -57,7 +57,7 @@ func main() {
numImported, err := lib.ImportHistory(ctx) numImported, err := lib.ImportHistory(ctx)
lib.CheckFatalError(err) lib.CheckFatalError(err)
if numImported > 0 { if numImported > 0 {
fmt.Printf("Imported %v history entries from your existing shell history", numImported) fmt.Printf("Imported %v history entries from your existing shell history\n", numImported)
} }
} }
case "import": case "import":
@ -68,7 +68,7 @@ func main() {
numImported, err := lib.ImportHistory(ctx) numImported, err := lib.ImportHistory(ctx)
lib.CheckFatalError(err) lib.CheckFatalError(err)
if numImported > 0 { if numImported > 0 {
fmt.Printf("Imported %v history entries from your existing shell history", numImported) fmt.Printf("Imported %v history entries from your existing shell history\n", numImported)
} }
case "enable": case "enable":
ctx := hctx.MakeContext() ctx := hctx.MakeContext()