Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TurnOff (0.08 sec)

  1. internal/color/color.go

    		return fmt.Sprintf
    	}()
    
    	FgWhite = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgWhite).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	TurnOff = func() {
    		color.NoColor = true
    	}
    
    	TurnOn = func() {
    		color.NoColor = false
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. internal/logger/logger.go

    	errorFmtFunc func(string, error, bool) string
    )
    
    // EnableQuiet - turns quiet option on.
    func EnableQuiet() {
    	color.TurnOff() // no colored outputs necessary in quiet mode.
    	quietFlag = true
    }
    
    // EnableJSON - outputs logs in json format.
    func EnableJSON() {
    	color.TurnOff() // no colored outputs necessary in JSON mode.
    	jsonFlag = true
    	quietFlag = true
    }
    
    // EnableAnonymous - turns anonymous flag
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  3. cmd/common-main.go

    	orchestrated       = IsKubernetes() || IsDocker()
    )
    
    func init() {
    	if !term.IsTerminal(int(os.Stdout.Fd())) || !term.IsTerminal(int(os.Stderr.Fd())) {
    		color.TurnOff()
    	}
    	if env.Get("NO_COLOR", "") != "" || env.Get("TERM", "") == "dumb" {
    		color.TurnOff()
    	}
    
    	if runtime.GOOS == "windows" {
    		if mousetrap.StartedByExplorer() {
    			fmt.Printf("Don't double-click %s\n", os.Args[0])
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 31.5K bytes
    - Viewed (0)
Back to top