github.com/cloudfoundry/cli@v7.1.0+incompatible/util/ui/config.go (about)

     1  package ui
     2  
     3  import "code.cloudfoundry.org/cli/util/configv3"
     4  
     5  //go:generate counterfeiter . 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  }