chore: rename display.Display

Rename `display.Display` to `display.Write` for clarity and to reduce
"stutter".
This commit is contained in:
Chris Lane
2020-11-27 22:35:24 -05:00
parent 4ef4c35d8c
commit cdddfbb516
6 changed files with 8 additions and 8 deletions

View File

@ -9,9 +9,9 @@ import (
"github.com/cheat/cheat/internal/config"
)
// Display writes output either directly to stdout, or through a pager,
// Write writes output either directly to stdout, or through a pager,
// depending upon configuration.
func Display(out string, conf config.Config) {
func Write(out string, conf config.Config) {
// if no pager was configured, print the output to stdout and exit
if conf.Pager == "" {
fmt.Print(out)