Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for red (0.12 sec)

  1. internal/logger/console.go

    	errMsg := fmt.Sprintf(msg, args...)
    
    	tagPrinted := false
    
    	// Print the error message: the following code takes care
    	// of splitting error text and always pretty printing the
    	// red banner along with the error message. Since the error
    	// message itself contains some colored text, we needed
    	// to use some ANSI control escapes to cursor color state
    	// and freely move in the screen.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. internal/color/color.go

    		return fmt.Sprint
    	}()
    
    	RedBoldf = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed, color.Bold).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	Red = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	Blue = func() func(format string, a ...interface{}) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. internal/config/errors-utils.go

    		return uiErr.msg
    	}
    	// Pretty print error message
    	introMsg += ": "
    	if uiErr.msg != "" {
    		introMsg += color.Bold(uiErr.msg)
    	} else {
    		introMsg += color.Bold(err.Error())
    	}
    	renderedTxt += color.Red(introMsg) + "\n"
    	// Add action message
    	if uiErr.action != "" {
    		renderedTxt += "> " + color.BgYellow(color.Black(uiErr.action)) + "\n"
    	}
    	// Add hint
    	if uiErr.hint != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top