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

Method __init__

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

Source from the content-addressed store, hash-verified

108
109class PackAsyncCommand(ActionRunCommandMixin, resource.ResourceCommand):
110 def __init__(self, *args, **kwargs):
111 super(PackAsyncCommand, self).__init__(*args, **kwargs)
112
113 self.parser.add_argument(
114 "-w",
115 "--width",
116 nargs="+",
117 type=int,
118 default=None,
119 help="Set the width of columns in output.",
120 )
121
122 detail_arg_grp = self.parser.add_mutually_exclusive_group()
123 detail_arg_grp.add_argument(
124 "--attr",
125 nargs="+",
126 default=["ref", "name", "description", "version", "author"],
127 help=(
128 "List of attributes to include in the "
129 'output. "all" or unspecified will '
130 "return all attributes."
131 ),
132 )
133 detail_arg_grp.add_argument(
134 "-d",
135 "--detail",
136 action="store_true",
137 help="Display full detail of the execution in table format.",
138 )
139
140 @add_auth_token_to_kwargs_from_cli
141 def run_and_print(self, args, **kwargs):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected