Documentation ¶
Index ¶
- 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, verb string, query string, streams ioutils.Streams, ...) error
- func SelectQuery(verb string, processedPresets map[string]*PresetQuery, ...) (string, string, bool, error)
- type ConfirmationRunner
- type PresetQuery
- type PromptRunner
- type SelectRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProcessQueries ¶
func ProcessQueries(presets []*PresetQuery) (map[string]*PresetQuery, []string, error)
func ReplacePlaceholders ¶
func SelectQuery ¶
func SelectQuery( verb string, processedPresets map[string]*PresetQuery, rawPresets []*PresetQuery, presetNames []string, streams ioutils.Streams, args []string, s func(presetNames []string) SelectRunner, ) (string, string, bool, error)
Types ¶
type ConfirmationRunner ¶
func Confirmation ¶
func Confirmation(question string) ConfirmationRunner
type PresetQuery ¶
func PrecannedQueries ¶
func PrecannedQueries(verb string, viper viper.Viper) []*PresetQuery
type PromptRunner ¶
func Prompt ¶
func Prompt(label string) PromptRunner
type SelectRunner ¶
func Select ¶
func Select(presetNames []string) SelectRunner
Click to show internal directories.
Click to hide internal directories.