Skip to content

Commit

Permalink
fix: add some color to ls cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
sunggun-yu committed Feb 9, 2022
1 parent 62b0cd5 commit ebef73f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package cmd
import (
"fmt"

"github.com/fatih/color"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/sunggun-yu/envp/internal/config"
Expand Down Expand Up @@ -35,7 +36,7 @@ func listCommand() *cobra.Command {
// print profiles. mark default profile with *
for _, p := range profileList {
if p == defaultProfile {
fmt.Println("*", p)
color.Green("* %s", p)
} else {
fmt.Println(" ", p)
}
Expand Down

0 comments on commit ebef73f

Please sign in to comment.