Skip to content

Commit

Permalink
chore: make color variables constants
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed Mar 15, 2024
1 parent bb365e0 commit a4e386c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/color/color.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package color

import "fmt"

var (
const (
reset = "\033[0m"
red = "\033[31m"
green = "\033[32m"
Expand Down
2 changes: 1 addition & 1 deletion cli/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
const (
moveCursorBackward = "\033[%dD"
clearLineFromCursor = "\033[K"
progressRune = rune('.') // 46
progressRune = '.'
)

type spinner struct {
Expand Down

0 comments on commit a4e386c

Please sign in to comment.