aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/service/__main__.py
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-11-11 01:12:29 +0800
committerYuqian Yang <crupest@crupest.life>2024-12-22 17:45:13 +0800
commitb834953fa61d816b9a955640ad12d244316ce904 (patch)
tree4197980a04943b42941d3fce7cb16d1f7ea400bd /tools/cru-py/cru/service/__main__.py
parent7e85627eb0d0126baf1e698ffdeae0f3c5fc693d (diff)
downloadcrupest-b834953fa61d816b9a955640ad12d244316ce904.tar.gz
crupest-b834953fa61d816b9a955640ad12d244316ce904.tar.bz2
crupest-b834953fa61d816b9a955640ad12d244316ce904.zip
HALF WORK: 2024.12.22
code.
Diffstat (limited to 'tools/cru-py/cru/service/__main__.py')
-rw-r--r--tools/cru-py/cru/service/__main__.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/cru-py/cru/service/__main__.py b/tools/cru-py/cru/service/__main__.py
new file mode 100644
index 0000000..a7add4d
--- /dev/null
+++ b/tools/cru-py/cru/service/__main__.py
@@ -0,0 +1,11 @@
+import argparse
+
+
+arg_parser = argparse.ArgumentParser(description="Service management")
+command_subparser = arg_parser.add_subparsers(dest="command")
+
+template_parser = command_subparser.add_parser("template", help="Template management")
+template_subparser = template_parser.add_subparsers(dest="template_command")
+
+template_subparser.add_parser('list', description="List templates")
+template_subparser.add_parser('generate')