Skip to content

Commit

Permalink
#16 add: color flag now shows command description in green
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Oct 5, 2024
1 parent e7e9682 commit 287f16f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
2 changes: 1 addition & 1 deletion cmd/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 287f16f

Please sign in to comment.