rename: rebrand to mire
This commit is contained in:
@@ -9,13 +9,13 @@ import (
|
||||
|
||||
var (
|
||||
palette = struct {
|
||||
miroGreen uint32
|
||||
mireGreen uint32
|
||||
chevronTeal uint32
|
||||
info uint32
|
||||
pass uint32
|
||||
fail uint32
|
||||
}{
|
||||
miroGreen: 0x70E000,
|
||||
mireGreen: 0x70E000,
|
||||
chevronTeal: 0x1DD3B0,
|
||||
info: 0xD7FFFF,
|
||||
pass: 0x00d7af,
|
||||
@@ -58,7 +58,7 @@ func noColor() bool {
|
||||
|
||||
func prefix() string {
|
||||
chevron := NewStyle().FG(palette.chevronTeal).Bold().Italic().Apply("›")
|
||||
return NewStyle().FG(palette.miroGreen).Bold().Italic().Apply("miro") + " " + chevron + " "
|
||||
return NewStyle().FG(palette.mireGreen).Bold().Italic().Apply("mire") + " " + chevron + " "
|
||||
}
|
||||
|
||||
func Format(msg string) string {
|
||||
|
||||
@@ -21,8 +21,8 @@ func TestFormatIncludesANSIByDefault(t *testing.T) {
|
||||
func TestFormatPlainWhenNoColorSet(t *testing.T) {
|
||||
t.Setenv("NO_COLOR", "1")
|
||||
|
||||
if got := Format("hello\n"); got != "miro › hello\n" {
|
||||
t.Fatalf("Format() = %q, want %q", got, "miro › hello\n")
|
||||
if got := Format("hello\n"); got != "mire › hello\n" {
|
||||
t.Fatalf("Format() = %q, want %q", got, "mire › hello\n")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ func TestFormatReadsNoColorAtRuntime(t *testing.T) {
|
||||
if !strings.Contains(styled, "\x1b[") {
|
||||
t.Fatalf("styled Format() = %q, want ANSI styling", styled)
|
||||
}
|
||||
if plain != "miro › hello\n" {
|
||||
t.Fatalf("plain Format() = %q, want %q", plain, "miro › hello\n")
|
||||
if plain != "mire › hello\n" {
|
||||
t.Fatalf("plain Format() = %q, want %q", plain, "mire › hello\n")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user