From f741c9863db3acbe5f35b14ba2195537c9674731 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 26 Oct 2023 16:57:30 +0200 Subject: Minor changes --- clusterman/__main__.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'clusterman/__main__.py') diff --git a/clusterman/__main__.py b/clusterman/__main__.py index 35953b4..5496ba5 100644 --- a/clusterman/__main__.py +++ b/clusterman/__main__.py @@ -1,6 +1,6 @@ import argparse,sys from clusterman.config import * -from clusterman.commands import node, plugins +from clusterman.commands import node, plugins, frontend def main(): parser = argparse.ArgumentParser() @@ -20,7 +20,10 @@ def main(): ##### Frontend commands ##### target_frontend = subparsers.add_parser("frontend") - + frontend_subparsers=target_frontend.add_subparsers(dest="command", help='Command') + # Info + node_cmd_scan=frontend_subparsers.add_parser("info") + ##### Plugins commands ##### target_plugins = subparsers.add_parser("plugins") target_plugins.add_argument("name", help="Plugin's name") @@ -51,7 +54,11 @@ def main(): target_node.print_help(sys.stderr) sys.exit(1) elif args.target == "frontend": - print("Do frontend related stuff") + if args.command == "info": + frontend.info() + else: + target_frontend.print_help(sys.stderr) + sys.exit(1) elif args.target == "plugins": plugins.execute(args.name,args.parameters) -- cgit v1.2.3