From 287f16fa0d85c21b6248c596eb65200797e737f2 Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Sat, 5 Oct 2024 07:14:30 +0200 Subject: [PATCH] #16 add: color flag now shows command description in green Signed-off-by: Patrizio Bekerle --- CHANGELOG.md | 4 ++++ cmd/util.go | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d4d627..c74720a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # QOwnNotes command-line snippet manager changelog +## v0.6.1 +- The `--color` flag now shows the command description in a calmer green, instead of red + (for [#16](https://github.com/qownnotes/qc/issues/16)) + ## v0.6.0 - Add support for storing commands in [Atuin](https://atuin.sh/) on execution when using the `--atuin` flag (for [#15](https://github.com/qownnotes/qc/issues/15)) diff --git a/cmd/util.go b/cmd/util.go index dc50a9d..96f9e30 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -72,7 +72,7 @@ func filter(options []string, tag string) (commands []string, err error) { snippetTexts[t] = s if config.Flag.Color { t = fmt.Sprintf("[%s]: %s%s", - color.RedString(s.Description), command, color.BlueString(tags)) + color.GreenString(s.Description), command, color.BlueString(tags)) } text += t + "\n" }