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

Function _register_cli_opts

st2common/st2common/cmd/install_pack.py:33–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def _register_cli_opts():
34 cli_opts = [
35 cfg.MultiStrOpt(
36 "pack",
37 default=None,
38 required=True,
39 positional=True,
40 help="Name of the pack to install.",
41 ),
42 cfg.BoolOpt(
43 "verify-ssl",
44 default=True,
45 help=(
46 "Verify SSL certificate of the Git repo from which the pack is "
47 "downloaded."
48 ),
49 ),
50 cfg.BoolOpt(
51 "force",
52 default=False,
53 help="True to force pack installation and ignore install "
54 "lock file if it exists.",
55 ),
56 ]
57 do_register_cli_opts(cli_opts)
58
59
60def main(argv):

Callers 1

mainFunction · 0.70

Calls 1

do_register_cli_optsFunction · 0.90

Tested by

no test coverage detected