blob: 0ca4b636b4067842027de7853c676d05f83ed4ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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: ...
|