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

Method __init__

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

Source from the content-addressed store, hash-verified

456
457class PackRegisterCommand(PackResourceCommand):
458 def __init__(self, resource, *args, **kwargs):
459 super(PackRegisterCommand, self).__init__(
460 resource,
461 "register",
462 "Register %s(s): sync all file changes with DB."
463 % resource.get_display_name().lower(),
464 *args,
465 **kwargs,
466 )
467
468 self.parser.add_argument(
469 "packs",
470 nargs="*",
471 metavar="pack",
472 help="Name of the %s(s) to register." % resource.get_display_name().lower(),
473 )
474
475 self.parser.add_argument(
476 "--types", nargs="+", help="Types of content to register."
477 )
478
479 @add_auth_token_to_kwargs_from_cli
480 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