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

Method Flags

command/patch.go:70–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68}
69
70func (c *PatchCommand) Flags() *FlagSets {
71 set := c.flagSet(FlagSetHTTP | FlagSetOutputField | FlagSetOutputFormat)
72 f := set.NewFlagSet("Command Options")
73
74 f.BoolVar(&BoolVar{
75 Name: "force",
76 Aliases: []string{"f"},
77 Target: &c.flagForce,
78 Default: false,
79 EnvVar: "",
80 Completion: complete.PredictNothing,
81 Usage: "Allow the operation to continue with no key=value pairs. This " +
82 "allows writing to keys that do not need or expect data.",
83 })
84
85 return set
86}
87
88func (c *PatchCommand) AutocompleteArgs() complete.Predictor {
89 // 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