Skip to content

Commit 73e8d4a

Browse files
committed
change appearance
1 parent 542a94c commit 73e8d4a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

subcmd/list.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"os"
88
"path/filepath"
99

10+
"github.com/fatih/color"
1011
"github.com/pkg/errors"
1112
"github.com/utahta/pythonbrew/flagset"
1213
"github.com/utahta/pythonbrew/log"
@@ -78,9 +79,9 @@ func (c *List) Run(args []string) error {
7879
for _, f := range fs {
7980
var name string
8081
if filepath.Join(path.InstallDir(), f.Name()) == current {
81-
name = fmt.Sprintf("* %s", f.Name())
82+
name = color.New(color.FgYellow, color.BgBlack).Sprintf("%s", f.Name())
8283
} else {
83-
name = fmt.Sprintf(" %s", f.Name())
84+
name = fmt.Sprintf("%s", f.Name())
8485
}
8586
c.log.Printf(name)
8687
}

0 commit comments

Comments
 (0)