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

Method __init__

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

Source from the content-addressed store, hash-verified

319 pk_argument_name = "name"
320
321 def __init__(self, resource, *args, **kwargs):
322 super(KeyValuePairDeleteCommand, self).__init__(resource, *args, **kwargs)
323
324 self.parser.add_argument(
325 "-s",
326 "--scope",
327 dest="scope",
328 default=DEFAULT_CUD_SCOPE,
329 help="Specify the scope under which you want " + "to place the item.",
330 )
331 self.parser.add_argument(
332 "-u",
333 "--user",
334 dest="user",
335 default=None,
336 help="User for user scoped items (admin only).",
337 )
338
339 @resource.add_auth_token_to_kwargs_from_cli
340 def run(self, args, **kwargs):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected