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

Method __init__

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

Source from the content-addressed store, hash-verified

220
221class PackShowCommand(PackResourceCommand):
222 def __init__(self, resource, *args, **kwargs):
223 help_string = (
224 "Get information about an available %s from the index."
225 % resource.get_display_name().lower()
226 )
227 super(PackShowCommand, self).__init__(
228 resource, "show", help_string, *args, **kwargs
229 )
230
231 self.parser.add_argument(
232 "pack", help="Name of the %s to show." % resource.get_display_name().lower()
233 )
234
235 @add_auth_token_to_kwargs_from_cli
236 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