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

Method __init__

st2client/st2client/commands/pack.py:507–521  ·  view source on GitHub ↗
(self, resource, *args, **kwargs)

Source from the content-addressed store, hash-verified

505
506class PackConfigCommand(resource.ResourceCommand):
507 def __init__(self, resource, *args, **kwargs):
508 super(PackConfigCommand, self).__init__(
509 resource,
510 "config",
511 "Configure a %s based on config schema."
512 % resource.get_display_name().lower(),
513 *args,
514 **kwargs,
515 )
516
517 self.parser.add_argument(
518 "name",
519 help="Name of the %s(s) to configure."
520 % resource.get_display_name().lower(),
521 )
522
523 @add_auth_token_to_kwargs_from_cli
524 def run(self, args, **kwargs):

Callers

nothing calls this directly

Calls 2

get_display_nameMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected