Source File
complete.go
Belonging Package
github.com/reeflective/console/internal/completion
package completionimport ()// DefaultStyleConfig sets some default styles for completion.func () {// If carapace config file is found, just return.if , := xdg.UserConfigDir(); == nil {, := os.Stat(fmt.Sprintf("%v/carapace/styles.json", ))if == nil {return}}// Overwrite all default styles for colorfor := 1; < 13; ++ {:= fmt.Sprintf("carapace.Highlight%d", )style.Set(, "bright-white")}// Overwrite all default styles for flagsstyle.Set("carapace.FlagArg", "bright-white")style.Set("carapace.FlagMultiArg", "bright-white")style.Set("carapace.FlagNoArg", "bright-white")style.Set("carapace.FlagOptArg", "bright-white")}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |