move spinner character const to style

pull/9855/head
alonyb 2020-12-10 09:12:24 -05:00
parent d47405830c
commit 8ee898976a
2 changed files with 3 additions and 2 deletions

View File

@ -61,13 +61,12 @@ var (
// JSON is whether or not we should output stdout in JSON format. Set using SetJSON()
JSON = false
// spin is spinner showed at starting minikube
spin = spinner.New(spinner.CharSets[SpinnerCharacter], 100*time.Millisecond)
spin = spinner.New(spinner.CharSets[style.SpinnerCharacter], 100*time.Millisecond)
)
// MaxLogEntries controls the number of log entries to show for each source
const (
MaxLogEntries = 3
SpinnerCharacter = 9
)
// fdWriter is the subset of file.File that implements io.Writer and Fd()

View File

@ -45,6 +45,8 @@ type Options struct {
Spinner bool
}
const SpinnerCharacter = 9
// Config is a map of style name to style struct
// For consistency, ensure that emojis added render with the same width across platforms.
var Config = map[Enum]Options{