Versions in this module Expand all Collapse all v1 v1.202449.18 Dec 16, 2024 Changes in this version + func GetPrettyError(cmd *cobra.Command, err error) error + func ProcessQueries(presets []*PresetQuery) (map[string]*PresetQuery, []string, error) + func ReplacePlaceholders(query string, args []string, p func(label string) PromptRunner) (string, error) + func RunQuery(bzl bazel.Bazel, command string, streams ioutils.Streams, args []string) error + func SelectQuery(verb string, processedPresets map[string]*PresetQuery, ...) (string, string, bool, error) + type ConfirmationRunner interface + Run func() (string, error) + func Confirmation(question string) ConfirmationRunner + type PresetQuery struct + Description string + Name string + Query string + Verb string + func PrecannedQueries(verb string, viper viper.Viper) []*PresetQuery + type PromptRunner interface + Run func() (string, error) + func Prompt(label string) PromptRunner + type SelectRunner interface + Run func() (int, string, error) + func Select(presetNames []string) SelectRunner