MCPcopy Create free account
hub / github.com/hashicorp/vault / Flags

Method Flags

command/namespace_create.go:50–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (c *NamespaceCreateCommand) Flags() *FlagSets {
51 set := c.flagSet(FlagSetHTTP | FlagSetOutputField | FlagSetOutputFormat)
52
53 f := set.NewFlagSet("Command Options")
54 f.StringMapVar(&StringMapVar{
55 Name: "custom-metadata",
56 Target: &c.flagCustomMetadata,
57 Default: map[string]string{},
58 Usage: "Specifies arbitrary key=value metadata meant to describe a namespace." +
59 "This can be specified multiple times to add multiple pieces of metadata.",
60 })
61
62 return set
63}
64
65func (c *NamespaceCreateCommand) AutocompleteArgs() complete.Predictor {
66 return complete.PredictNothing

Callers 3

HelpMethod · 0.95
AutocompleteFlagsMethod · 0.95
RunMethod · 0.95

Calls 3

StringMapVarMethod · 0.95
flagSetMethod · 0.80
NewFlagSetMethod · 0.80

Tested by

no test coverage detected