Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for color (0.16 sec)

  1. internal/color/color.go

    			return color.New(color.Bold).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    	RedBold = func() func(a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed, color.Bold).SprintFunc()
    		}
    		return fmt.Sprint
    	}()
    
    	RedBoldf = func() func(format string, a ...interface{}) string {
    		if IsTerminal() {
    			return color.New(color.FgRed, color.Bold).SprintfFunc()
    		}
    		return fmt.Sprintf
    	}()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 13 16:27:40 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  2. cmd/update-notifier.go

    		vertBarChar = "|"
    	}
    
    	lines := []string{
    		color.YellowBold(topLeftChar + strings.Repeat(horizBarChar, maxContentWidth) + topRightChar),
    		color.YellowBold(vertBarChar) + line1InColor + strings.Repeat(" ", maxContentWidth-line1Length) + color.YellowBold(vertBarChar),
    		color.YellowBold(vertBarChar) + line2InColor + strings.Repeat(" ", maxContentWidth-line2Length) + color.YellowBold(vertBarChar),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  3. cmd/update-notifier_test.go

    	for i, testCase := range testCases {
    		output := prepareUpdateMessage(testCase.dlURL, testCase.older)
    		line1 := fmt.Sprintf("%s %s", plainMsg, color.YellowBold(testCase.expectedSubStr))
    		line2 := fmt.Sprintf("Update: %s", color.CyanBold(testCase.dlURL))
    		// Uncomment below to see message appearance:
    		// fmt.Println(output)
    		switch {
    		case testCase.dlURL == "" && output != "":
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 31 15:36:19 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. operator/cmd/mesh/operator-init.go

    	}
    
    	if customResource != "" {
    		if err := applyManifest(kubeClient, client, customResource, name.IstioOperatorComponentName, opts, iop, l); err != nil {
    			l.LogAndFatal(err)
    		}
    	}
    
    	l.LogAndPrint(color.New(color.FgGreen).Sprint("✔ ") + installationCompleteStr)
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. internal/logger/target/console/console.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package console
    
    import (
    	"encoding/json"
    	"fmt"
    	"strconv"
    	"strings"
    
    	"github.com/minio/minio/internal/color"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/console"
    	"github.com/minio/pkg/v2/logger/message/log"
    )
    
    // Target implements loggerTarget to send log
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. internal/logger/console.go

    	ExitFunc(1)
    }
    
    func (f fatalMsg) quiet(msg string, args ...interface{}) {
    	f.pretty(msg, args...)
    }
    
    var (
    	logTag      = "ERROR"
    	logBanner   = color.BgRed(color.FgWhite(color.Bold(logTag))) + " "
    	emptyBanner = color.BgRed(strings.Repeat(" ", len(logTag))) + " "
    	bannerWidth = len(logTag) + 1
    )
    
    func (f fatalMsg) pretty(msg string, args ...interface{}) {
    	// Build the passed error message
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  7. internal/config/errors-utils.go

    	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 != "" {
    		renderedTxt += color.Bold("HINT:") + "\n"
    		renderedTxt += "  " + uiErr.hint
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  8. istioctl/pkg/writer/table/writer_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package table
    
    import (
    	"bytes"
    	"testing"
    
    	"github.com/fatih/color"
    )
    
    type testObject struct {
    	name      string
    	namespace string
    	version   string
    }
    
    var newTestObject = func(name, namespace, version string) testObject {
    	return testObject{
    		name:      name,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  9. internal/config/certsinfo.go

    func CertificateText(cert *x509.Certificate) string {
    	var buf strings.Builder
    
    	buf.WriteString(color.Blue("\nCertificate:\n"))
    	if cert.SignatureAlgorithm != x509.UnknownSignatureAlgorithm {
    		buf.WriteString(color.Blue("%4sSignature Algorithm: ", "") + color.Bold(fmt.Sprintf("%s\n", cert.SignatureAlgorithm)))
    	}
    
    	// Issuer information
    	buf.WriteString(color.Blue("%4sIssuer: ", ""))
    	printName(cert.Issuer.Names, &buf)
    
    	// Validity information
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/table/writer.go

    type Cell struct {
    	Value      string
    	Attributes []color.Attribute
    }
    
    type Row struct {
    	Cells []Cell
    }
    
    func NewCell(value string, attributes ...color.Attribute) Cell {
    	attrs := append([]color.Attribute{}, attributes...)
    	return Cell{value, attrs}
    }
    
    func (cell Cell) String() string {
    	if len(cell.Attributes) == 0 {
    		return cell.Value
    	}
    	s := color.New(cell.Attributes...)
    	s.EnableColor()
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Oct 08 04:41:42 GMT 2022
    - 2.8K bytes
    - Viewed (0)
Back to top