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

Method __init__

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

Source from the content-addressed store, hash-verified

509
510class ResourceCreateCommand(ResourceCommand):
511 def __init__(self, resource, *args, **kwargs):
512 super(ResourceCreateCommand, self).__init__(
513 resource,
514 "create",
515 "Create a new %s." % resource.get_display_name().lower(),
516 *args,
517 **kwargs,
518 )
519
520 self.parser.add_argument(
521 "file",
522 help=(
523 "JSON/YAML file containing the %s to create."
524 % resource.get_display_name().lower()
525 ),
526 )
527
528 @add_auth_token_to_kwargs_from_cli
529 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