mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 20:44:51 +02:00
18 lines
523 B
Python
18 lines
523 B
Python
|
|
# -*- coding: utf-8 -*-
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
from typing import TYPE_CHECKING
|
||
|
|
|
||
|
|
from .Cmd import Cmd
|
||
|
|
|
||
|
|
if TYPE_CHECKING:
|
||
|
|
from ..CmdSecrets import CmdSecrets
|
||
|
|
from argparse import Namespace, ArgumentParser
|
||
|
|
|
||
|
|
class CmdCompileTemplates(Cmd): # export
|
||
|
|
|
||
|
|
def __init__(self, parent: CmdSecrets) -> None:
|
||
|
|
super().__init__(parent, 'compile-templates', help="Compile package template files")
|
||
|
|
|
||
|
|
async def _run(self, args: Namespace) -> None:
|
||
|
|
await self._compile_template_files(args.packages)
|