This commit is contained in:
@@ -3,6 +3,7 @@ from pathlib import Path
|
||||
from typing import NamedTuple, Self
|
||||
|
||||
from ..common.command import CommandExecutor
|
||||
from ..preset.model import Variables
|
||||
|
||||
logger = logging.getLogger("entry")
|
||||
|
||||
@@ -57,13 +58,21 @@ class Entry:
|
||||
def __init__(
|
||||
self,
|
||||
tasks: list[Task],
|
||||
variables: Variables,
|
||||
basepath: Path,
|
||||
rootpath: Path,
|
||||
):
|
||||
self._tasks = tasks
|
||||
self._variables = variables
|
||||
self._basepath = basepath
|
||||
self._roopath = rootpath
|
||||
|
||||
@property
|
||||
def sensentive_data(self):
|
||||
for k, v in self._variables.items():
|
||||
if "pass" in k.lower():
|
||||
yield v
|
||||
|
||||
def show(self):
|
||||
self._logger.info("🔵 %s", self)
|
||||
level = logging.root.level
|
||||
|
||||
Reference in New Issue
Block a user