summaryrefslogtreecommitdiff
path: root/clusterman/__main__.py
diff options
context:
space:
mode:
authorLoic Guegan <loic.guegan@mailbox.org>2023-10-26 16:57:30 +0200
committerLoic Guegan <loic.guegan@mailbox.org>2023-10-26 16:57:30 +0200
commitf741c9863db3acbe5f35b14ba2195537c9674731 (patch)
treee095bd70e133ac56fa5269c1624ec764c1f8a0e6 /clusterman/__main__.py
parentabd29e2cdfe83160869631a0f391d428bbe11210 (diff)
Minor changes
Diffstat (limited to 'clusterman/__main__.py')
-rw-r--r--clusterman/__main__.py13
1 files changed, 10 insertions, 3 deletions
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)