diff options
| author | Paul Buetow <paul@buetow.org> | 2025-01-06 22:21:19 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-01-06 22:21:19 +0200 |
| commit | 4b34876fb23e42dcc1d9414cafa367147de42ad7 (patch) | |
| tree | 3bc59d77e88b342da35214204f009cfc4b75bd99 /internal | |
| parent | 4cb5c058199033a1813a92709feee427ea3af109 (diff) | |
fix output formatting
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/prompt/file.go | 4 | ||||
| -rw-r--r-- | internal/prompt/prompt.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/prompt/file.go b/internal/prompt/file.go index ea1ab00..2f0be02 100644 --- a/internal/prompt/file.go +++ b/internal/prompt/file.go @@ -20,9 +20,9 @@ var ( ) func FileAction(question, content, filePath string, includeRandomOption ...bool) (string, error) { - colour.Info2f(filePath + ":") + colour.Info2f("%s:", filePath) fmt.Print("\n") - colour.Info2f(content) + colour.Info2f("%s", content) fmt.Print("\n") reader := bufio.NewReader(os.Stdin) diff --git a/internal/prompt/prompt.go b/internal/prompt/prompt.go index d2002d7..31eeefc 100644 --- a/internal/prompt/prompt.go +++ b/internal/prompt/prompt.go @@ -11,7 +11,7 @@ import ( func Acknowledge(messages ...string) error { if len(messages) > 1 { for _, content := range messages[1:] { - colour.Info2f(content) + colour.Info2f("%s", content) fmt.Print("\n") } } |
