cmds.secrets.lib.util: Add module
To be able to use secret handling code from other modules, move the bulk of it from the "secrets"-command centric implementation in cmds.secrets.Cmd into a new module cmds.secrets.lib.util. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d680d6c5ed
commit
5ad65f85fd
1 changed files with 297 additions and 249 deletions
|
|
@ -3,6 +3,8 @@
|
|||
from __future__ import annotations
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from .lib.util import Attrs
|
||||
|
||||
from .Cmd import Cmd
|
||||
|
||||
if TYPE_CHECKING:
|
||||
|
|
@ -15,7 +17,7 @@ class CmdCompileTemplates(Cmd): # export
|
|||
super().__init__(parent, 'compile-templates', help="Compile package template files")
|
||||
|
||||
async def _run(self, args: Namespace) -> None:
|
||||
attrs = Cmd.Attrs(args.mode, args.owner, args.group, None)
|
||||
attrs = Attrs(args.mode, args.owner, args.group, None)
|
||||
await self._compile_template_files(args.packages, attrs)
|
||||
|
||||
def add_arguments(self, parser: ArgumentParser) -> None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue