(self, resource, *args, **kwargs)
| 36 | display_attributes = ["id", "uid", "pack", "name", "type", "parameters"] |
| 37 | |
| 38 | def __init__(self, resource, *args, **kwargs): |
| 39 | super(TimerListCommand, self).__init__(resource, *args, **kwargs) |
| 40 | |
| 41 | self.parser.add_argument( |
| 42 | "-ty", |
| 43 | "--timer-type", |
| 44 | type=str, |
| 45 | dest="timer_type", |
| 46 | help=( |
| 47 | "List %s type, example: 'core.st2.IntervalTimer', \ |
| 48 | 'core.st2.DateTimer', 'core.st2.CronTimer'." |
| 49 | % resource.get_plural_display_name().lower() |
| 50 | ), |
| 51 | required=False, |
| 52 | ) |
| 53 | |
| 54 | @resource.add_auth_token_to_kwargs_from_cli |
| 55 | def run(self, args, **kwargs): |
nothing calls this directly
no test coverage detected