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

Method Flags

command/write.go:84–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func (c *WriteCommand) Flags() *FlagSets {
85 set := c.flagSet(FlagSetHTTP | FlagSetOutputField | FlagSetOutputFormat)
86 f := set.NewFlagSet("Command Options")
87
88 f.BoolVar(&BoolVar{
89 Name: "force",
90 Aliases: []string{"f"},
91 Target: &c.flagForce,
92 Default: false,
93 EnvVar: "",
94 Completion: complete.PredictNothing,
95 Usage: "Allow the operation to continue with no key=value pairs. This " +
96 "allows writing to keys that do not need or expect data.",
97 })
98
99 return set
100}
101
102func (c *WriteCommand) AutocompleteArgs() complete.Predictor {
103 // Return an anything predictor here. Without a way to access help

Callers 3

HelpMethod · 0.95
AutocompleteFlagsMethod · 0.95
RunMethod · 0.95

Calls 3

BoolVarMethod · 0.95
flagSetMethod · 0.80
NewFlagSetMethod · 0.80

Tested by

no test coverage detected