MCPcopy Create free account
hub / github.com/StackStorm/st2 / __init__

Method __init__

st2client/st2client/commands/timer.py:38–52  ·  view source on GitHub ↗
(self, resource, *args, **kwargs)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected