MCPcopy Index your code
hub / github.com/devopsctl/gitlabctl / newSetAtLeastOneFlagError

Function newSetAtLeastOneFlagError

cmd/helpers.go:54–57  ·  view source on GitHub ↗
(flags ...string)

Source from the content-addressed store, hash-verified

52}
53
54func newSetAtLeastOneFlagError(flags ...string) error {
55 return fmt.Errorf("%s from (%s)",
56 setAtLeastOneFlagError, strings.Join(flags, ", "))
57}
58
59func validateFlagCombination(cmd *cobra.Command, mainFlag string, flags ...string) error {
60 for _, fName := range flags {

Callers 4

completion.goFile · 0.85
new_user.goFile · 0.85
validateFromProjectFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected