MCPcopy Index your code
hub / github.com/StackStorm/st2 / __init__

Method __init__

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

Source from the content-addressed store, hash-verified

422
423class ApiKeyLoadCommand(resource.ResourceCommand):
424 def __init__(self, resource, *args, **kwargs):
425 super(ApiKeyLoadCommand, self).__init__(
426 resource,
427 "load",
428 "Load %s from a file." % resource.get_display_name().lower(),
429 *args,
430 **kwargs,
431 )
432
433 self.parser.add_argument(
434 "file",
435 help=(
436 "JSON/YAML file containing the %s(s) to load."
437 % resource.get_display_name().lower()
438 ),
439 default="",
440 )
441
442 self.parser.add_argument(
443 "-w",
444 "--width",
445 nargs="+",
446 type=int,
447 default=None,
448 help=("Set the width of columns in output."),
449 )
450
451 @resource.add_auth_token_to_kwargs_from_cli
452 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