mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
22 lines
482 B
Go
22 lines
482 B
Go
package env
|
|
|
|
import (
|
|
"github.com/rsteube/carapace"
|
|
"github.com/rsteube/carapace/pkg/style"
|
|
)
|
|
|
|
func init() {
|
|
knownVariables["nocolor"] = variables{
|
|
Variables: map[string]string{
|
|
"NO_COLOR": "disable colors in supported commands",
|
|
},
|
|
VariableCompletion: map[string]carapace.Action{
|
|
"NO_COLOR": carapace.ActionStyledValuesDescribed(
|
|
"0", "show colors", style.Carapace.KeywordNegative,
|
|
"1", "do not show colors", style.Carapace.KeywordPositive,
|
|
),
|
|
},
|
|
}
|
|
|
|
}
|