mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 01:58:29 +02:00
feat(display): make Faint
respect Colorize
Make `display.Faint` respect the `Colorize` config value.
This commit is contained in:
@ -77,7 +77,7 @@ func cmdSearch(opts map[string]interface{}, conf config.Config) {
|
||||
// display the cheatsheet title and path
|
||||
out += fmt.Sprintf("\n%s %s\n",
|
||||
display.Underline(sheet.Title),
|
||||
display.Faint(fmt.Sprintf("(%s)", sheet.CheatPath)),
|
||||
display.Faint(fmt.Sprintf("(%s)", sheet.CheatPath), conf),
|
||||
)
|
||||
|
||||
// indent each line of content
|
||||
|
@ -41,7 +41,7 @@ func cmdView(opts map[string]interface{}, conf config.Config) {
|
||||
// identify the matching cheatsheet
|
||||
fmt.Println(fmt.Sprintf("%s %s",
|
||||
display.Underline(sheet.Title),
|
||||
display.Faint(fmt.Sprintf("(%s)", sheet.CheatPath)),
|
||||
display.Faint(fmt.Sprintf("(%s)", sheet.CheatPath), conf),
|
||||
))
|
||||
|
||||
// apply colorization if requested
|
||||
|
Reference in New Issue
Block a user