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

Method __init__

st2client/st2client/commands/keyvalue.py:193–207  ·  view source on GitHub ↗
(self, kv_resource, *args, **kwargs)

Source from the content-addressed store, hash-verified

191 ]
192
193 def __init__(self, kv_resource, *args, **kwargs):
194 super(KeyValuePairGetCommand, self).__init__(kv_resource, *args, **kwargs)
195 self.parser.add_argument(
196 "-d",
197 "--decrypt",
198 action="store_true",
199 help="Decrypt secret if encrypted and show plain text.",
200 )
201 self.parser.add_argument(
202 "-s",
203 "--scope",
204 default=DEFAULT_GET_SCOPE,
205 dest="scope",
206 help='Scope item is under. Example: "user".',
207 )
208
209 @resource.add_auth_token_to_kwargs_from_cli
210 def run(self, args, **kwargs):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected