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:
Jan Lindemann 2026-04-11 10:16:54 +02:00
commit 5ad65f85fd

View file

@ -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: