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

Method Flags

command/operator_usage.go:52–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (c *OperatorUsageCommand) Flags() *FlagSets {
53 set := c.flagSet(FlagSetHTTP | FlagSetOutputFormat)
54
55 f := set.NewFlagSet("Command Options")
56
57 f.TimeVar(&TimeVar{
58 Name: "start-time",
59 Usage: "Start of report period. Defaults to billing start time",
60 Target: &c.flagStartTime,
61 Completion: complete.PredictNothing,
62 Default: time.Time{},
63 Formats: TimeVar_TimeOrDay | TimeVar_Month,
64 })
65 f.TimeVar(&TimeVar{
66 Name: "end-time",
67 Usage: "End of report period. Defaults to end of the current month.",
68 Target: &c.flagEndTime,
69 Completion: complete.PredictNothing,
70 Default: time.Time{},
71 Formats: TimeVar_TimeOrDay | TimeVar_Month,
72 })
73
74 return set
75}
76
77func (c *OperatorUsageCommand) AutocompleteArgs() complete.Predictor {
78 return complete.PredictAnything

Callers 3

HelpMethod · 0.95
AutocompleteFlagsMethod · 0.95
RunMethod · 0.95

Calls 3

TimeVarMethod · 0.95
flagSetMethod · 0.80
NewFlagSetMethod · 0.80

Tested by

no test coverage detected