Documentation ¶
Overview ¶
Package utils contains various utility functions and whatnot.
Index ¶
- func AddAll(map1 map[string]string, map2 map[string]string) map[string]string
- func FindAllSubpackages(config *core.Configuration, rootPath string, prefix string) <-chan string
- func InitConfig(dir string, bazelCompatibility bool)
- func InitConfigFile(filename string, options map[string]string)
- func Max(x, y int) int
- func PrettyPrintSuggestion(needle string, haystack []string, maxSuggestionDistance int) string
- func PrintCompletionScript()
- func Suggest(needle string, haystack []string, maxSuggestionDistance int) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAll ¶
AddAll adds all of one map[string]string to another.
func FindAllSubpackages ¶
func FindAllSubpackages(config *core.Configuration, rootPath string, prefix string) <-chan string
FindAllSubpackages finds all packages under a particular path. Used to implement rules with ... where we need to know all possible packages under that location.
func InitConfig ¶
InitConfig initialises a .plzconfig template in the given directory.
func InitConfigFile ¶
InitConfigFile sets a bunch of values in a config file.
func PrettyPrintSuggestion ¶
PrettyPrintSuggestion implements levenshtein-based suggestions on a sequence of items and produces a single message from them.
func PrintCompletionScript ¶
func PrintCompletionScript()
PrintCompletionScript prints Please's completion script to stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.