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

Function _register_cli_opts

st2common/st2common/cmd/setup_pack_virtualenv.py:30–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def _register_cli_opts():
31 cli_opts = [
32 cfg.MultiStrOpt(
33 "pack",
34 default=None,
35 required=True,
36 positional=True,
37 help="Name of the pack to setup the virtual environment for.",
38 ),
39 cfg.BoolOpt(
40 "update",
41 default=False,
42 help=(
43 "Check this option if the virtual environment already exists and if you "
44 "only want to perform an update and installation of new dependencies. If "
45 "you don't check this option, the virtual environment will be destroyed "
46 "then re-created. If you check this and the virtual environment doesn't "
47 "exist, it will create it.."
48 ),
49 ),
50 ]
51 do_register_cli_opts(cli_opts)
52
53
54def main(argv):

Callers 1

mainFunction · 0.70

Calls 1

do_register_cli_optsFunction · 0.90

Tested by

no test coverage detected