aboutsummaryrefslogtreecommitdiff
path: root/tools/cru-py/cru/service/_template.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/_template.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/_template.py')
-rw-r--r--tools/cru-py/cru/service/_template.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/cru-py/cru/service/_template.py b/tools/cru-py/cru/service/_template.py
new file mode 100644
index 0000000..0ca4b63
--- /dev/null
+++ b/tools/cru-py/cru/service/_template.py
@@ -0,0 +1,20 @@
+from argparse import ArgumentParser, Namespace
+
+from ._base import AppBase, AppFunction
+
+
+class TemplateManager(AppFunction):
+ def __init__(self, app: AppBase):
+ self._app = app
+ pass
+
+ @property
+ def name(self):
+ return "template-manager"
+
+ def add_arg_parser(self, arg_parser: ArgumentParser) -> None:
+ subparsers = arg_parser.add_subparsers(dest="template_command")
+ list_parser = subparsers.add_parser("list", help="List templates")
+ generate_parser = subparsers.add_parser("generate", help="Generate template")
+
+ def run_command(self, args: Namespace) -> None: ...