(subparsers)
| 876 | |
| 877 | |
| 878 | def 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 | |
| 893 | def initialize_repl_subcommand(subparsers): |
no test coverage detected