()
| 50 | } |
| 51 | |
| 52 | func (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 | |
| 77 | func (c *OperatorUsageCommand) AutocompleteArgs() complete.Predictor { |
| 78 | return complete.PredictAnything |
no test coverage detected