MCPcopy Create free account
hub / github.com/apache/storm / initialize_shell_subcommand

Function initialize_shell_subcommand

bin/storm.py:878–890  ·  view source on GitHub ↗
(subparsers)

Source from the content-addressed store, hash-verified

876
877
878def initialize_shell_subcommand(subparsers):
879 command_help = """
880 Archives resources to jar and uploads jar to Nimbus, and executes following arguments on "local". Useful for non JVM languages.
881 eg: `storm shell resources/ python3 topology.py arg1 arg2`"""
882
883 sub_parser = subparsers.add_parser("shell", help=command_help, formatter_class=SortingHelpFormatter)
884
885 sub_parser.add_argument("resourcesdir")
886 sub_parser.add_argument("command")
887 sub_parser.add_argument("args", nargs='*', default=[])
888
889 sub_parser.set_defaults(func=shell)
890 add_common_options(sub_parser, main_args=False)
891
892
893def initialize_repl_subcommand(subparsers):

Callers 1

initialize_main_commandFunction · 0.85

Calls 1

add_common_optionsFunction · 0.85

Tested by

no test coverage detected