github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/util/ui/config.go (about)

     1  package ui
     2  
     3  import "code.cloudfoundry.org/cli/util/configv3"
     4  
     5  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . Config
     6  
     7  // Config is the UI configuration.
     8  type Config interface {
     9  	// ColorEnabled enables or disabled color
    10  	ColorEnabled() configv3.ColorSetting
    11  	// Locale is the language to translate the output to
    12  	Locale() string
    13  	// IsTTY returns true when the ui has a TTY
    14  	IsTTY() bool
    15  	// TerminalWidth returns the width of the terminal
    16  	TerminalWidth() int
    17  }