MCPcopy Index your code
hub / github.com/hashicorp/vault / Flags

Method Flags

command/namespace_patch.go:54–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52}
53
54func (c *NamespacePatchCommand) Flags() *FlagSets {
55 set := c.flagSet(FlagSetHTTP | FlagSetOutputField | FlagSetOutputFormat)
56
57 f := set.NewFlagSet("Command Options")
58 f.StringMapVar(&StringMapVar{
59 Name: "custom-metadata",
60 Target: &c.flagCustomMetadata,
61 Default: map[string]string{},
62 Usage: "Specifies arbitrary key=value metadata meant to describe a namespace." +
63 "This can be specified multiple times to add multiple pieces of metadata.",
64 })
65
66 f.StringSliceVar(&StringSliceVar{
67 Name: "remove-custom-metadata",
68 Target: &c.flagRemoveCustomMetadata,
69 Default: []string{},
70 Usage: "Key to remove from custom metadata. To specify multiple values, specify this flag multiple times.",
71 })
72
73 return set
74}
75
76func (c *NamespacePatchCommand) AutocompleteArgs() complete.Predictor {
77 return complete.PredictNothing

Callers 3

HelpMethod · 0.95
AutocompleteFlagsMethod · 0.95
RunMethod · 0.95

Calls 4

StringMapVarMethod · 0.95
StringSliceVarMethod · 0.95
flagSetMethod · 0.80
NewFlagSetMethod · 0.80

Tested by

no test coverage detected