Skip to content

Commit 5455937

Browse files
committed
Fixed coloring
1 parent 43908f2 commit 5455937

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cli/lib/examples.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,9 @@ func (ir libraryExamplesResult) String() string {
104104
r := fmt.Sprintf("Examples for library %s\n", color.GreenString("%s", name))
105105
for _, example := range lib.Examples {
106106
examplePath := paths.New(example)
107-
r += fmt.Sprintf(" - %s%c%s\n",
108-
color.New(color.Faint).Sprintf("%s", examplePath.Parent()),
109-
os.PathSeparator,
110-
color.HiWhiteString("%s", examplePath.Base()))
107+
r += fmt.Sprintf(" - %s%s\n",
108+
color.New(color.Faint).Sprintf("%s%c", examplePath.Parent(), os.PathSeparator),
109+
examplePath.Base())
111110
}
112111
res = append(res, r)
113112
}

0 commit comments

Comments
 (0)