Skip to content

Commit

Permalink
Add some more colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nigimaxx committed Jul 15, 2021
1 parent 45cf811 commit e581819
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions daemon/pkg/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ var (
color.FgMagenta,
color.FgCyan,
color.FgWhite,
color.FgHiRed,
color.FgHiGreen,
color.FgHiYellow,
color.FgHiBlue,
color.FgHiMagenta,
color.FgHiCyan,
color.FgHiWhite,
}
)

Expand Down Expand Up @@ -49,7 +56,6 @@ type Service struct {
}

func NewServiceFromDef(s *proto.ServiceDefinition) *Service {
colorIndex = (colorIndex + 1) % len(colors)
return &Service{
Name: s.Name,
Command: s.Command,
Expand All @@ -61,7 +67,6 @@ func NewServiceFromDef(s *proto.ServiceDefinition) *Service {
}

func (s *Service) Clone() *Service {
colorIndex = (colorIndex + 1) % len(colors)
return &Service{
Name: s.Name,
Command: s.Command,
Expand Down

0 comments on commit e581819

Please sign in to comment.