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

Method __init__

st2client/st2client/commands/pack.py:57–85  ·  view source on GitHub ↗
(self, description, app, subparsers, parent_parser=None)

Source from the content-addressed store, hash-verified

55
56class PackBranch(resource.ResourceBranch):
57 def __init__(self, description, app, subparsers, parent_parser=None):
58 super(PackBranch, self).__init__(
59 Pack,
60 description,
61 app,
62 subparsers,
63 parent_parser=parent_parser,
64 read_only=True,
65 commands={"list": PackListCommand, "get": PackGetCommand},
66 )
67
68 self.commands["show"] = PackShowCommand(
69 self.resource, self.app, self.subparsers
70 )
71 self.commands["search"] = PackSearchCommand(
72 self.resource, self.app, self.subparsers
73 )
74 self.commands["install"] = PackInstallCommand(
75 self.resource, self.app, self.subparsers
76 )
77 self.commands["remove"] = PackRemoveCommand(
78 self.resource, self.app, self.subparsers
79 )
80 self.commands["register"] = PackRegisterCommand(
81 self.resource, self.app, self.subparsers
82 )
83 self.commands["config"] = PackConfigCommand(
84 self.resource, self.app, self.subparsers
85 )
86
87
88class PackResourceCommand(resource.ResourceCommand):

Callers 7

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 6

PackShowCommandClass · 0.85
PackSearchCommandClass · 0.85
PackInstallCommandClass · 0.85
PackRemoveCommandClass · 0.85
PackRegisterCommandClass · 0.85
PackConfigCommandClass · 0.85

Tested by

no test coverage detected