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

Method __init__

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

Source from the content-addressed store, hash-verified

239
240class PackInstallCommand(PackAsyncCommand):
241 def __init__(self, resource, *args, **kwargs):
242 super(PackInstallCommand, self).__init__(
243 resource,
244 "install",
245 "Install new %s." % resource.get_plural_display_name().lower(),
246 *args,
247 **kwargs,
248 )
249
250 self.parser.add_argument(
251 "packs",
252 nargs="+",
253 metavar="pack",
254 help="Name of the %s in Exchange, or a git repo URL."
255 % resource.get_plural_display_name().lower(),
256 )
257 self.parser.add_argument(
258 "--force",
259 action="store_true",
260 default=False,
261 help="Force pack installation.",
262 )
263 self.parser.add_argument(
264 "--skip-dependencies",
265 action="store_true",
266 default=False,
267 help="Skip pack dependency installation.",
268 )
269
270 def run(self, args, **kwargs):
271 is_structured_output = args.json or args.yaml

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45

Tested by

no test coverage detected