mirror of
https://github.com/cheat/cheat.git
synced 2026-03-07 11:13:33 +01:00
feat(display): add methods to display
- Add `indent`, `faint`, and `underline` methods to `display` - Add tests for the above
This commit is contained in:
8
internal/display/faint.go
Normal file
8
internal/display/faint.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package display
|
||||
|
||||
import "fmt"
|
||||
|
||||
// Faint returns an faint string
|
||||
func Faint(str string) string {
|
||||
return fmt.Sprintf(fmt.Sprintf("\033[2m%s\033[0m", str))
|
||||
}
|
||||
Reference in New Issue
Block a user