3092f82dcc
This almost 100% backwards compatible. The only difference being that in the rc options/get output CutoffMode, LogLevel, TerminalColorMode will be output as strings instead of integers. This is a lot more convenient for the user. They still accept integer inputs though so the fallout from this should be minimal.
21 lines
496 B
Go
21 lines
496 B
Go
package fs
|
|
|
|
// TerminalColorMode describes how ANSI codes should be handled
|
|
type TerminalColorMode = Enum[terminalColorModeChoices]
|
|
|
|
// TerminalColorMode constants
|
|
const (
|
|
TerminalColorModeAuto TerminalColorMode = iota
|
|
TerminalColorModeNever
|
|
TerminalColorModeAlways
|
|
)
|
|
|
|
type terminalColorModeChoices struct{}
|
|
|
|
func (terminalColorModeChoices) Choices() []string {
|
|
return []string{
|
|
TerminalColorModeAuto: "AUTO",
|
|
TerminalColorModeNever: "NEVER",
|
|
TerminalColorModeAlways: "ALWAYS",
|
|
}
|
|
}
|