diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 12:37:05 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-10-27 12:37:05 +0200 |
| commit | f8d4827e49c5066c6a604a1bdb43406e4388f929 (patch) | |
| tree | 03e9c4223595b79785cabc2e1d67638215e5d6e2 /clusterman/__main__.py | |
| parent | be63ecd7dcd86480b7d134c0b281d5a3160531eb (diff) | |
Minor changes
Diffstat (limited to 'clusterman/__main__.py')
| -rw-r--r-- | clusterman/__main__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clusterman/__main__.py b/clusterman/__main__.py index 598ea7a..d22786b 100644 --- a/clusterman/__main__.py +++ b/clusterman/__main__.py @@ -18,6 +18,9 @@ def main(): # List node_cmd_list=node_subparsers.add_parser("list") node_cmd_list.add_argument("-g", "--group" ,help="Group to list") + # Exec + node_cmd_list=node_subparsers.add_parser("exec") + node_cmd_list.add_argument("cmd",help="Command to run",nargs=argparse.REMAINDER) ##### Frontend commands ##### target_frontend = subparsers.add_parser("frontend") @@ -54,6 +57,8 @@ def main(): node.ls(args.group) else: node.ls() + elif args.command == "exec": + node.exec(args.cmd) else: target_node.print_help(sys.stderr) sys.exit(1) |
