mirror of
				https://github.com/cheat/cheat.git
				synced 2025-11-04 07:45:28 +01:00 
			
		
		
		
	chore: rename display.Display
				
					
				
			Rename `display.Display` to `display.Write` for clarity and to reduce "stutter".
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user