refactor: realizo parseo de flowconfig antes de ejecutar run, no en __init__

This commit is contained in:
jt
2025-11-21 20:48:20 -03:00
parent 4dbef58e90
commit edf4948719
2 changed files with 5 additions and 6 deletions
+2 -5
View File
@@ -31,6 +31,8 @@ TYPE_INFO = 3
class Command(ABC):
flowconfig: dict[str, str]
@abstractmethod
def name(self) -> str:
pass
@@ -43,11 +45,6 @@ class Command(ABC):
def run(self, args: Namespace = Namespace()):
pass
def __init__(self) -> None:
self.flowconfig = (
Git.get_config(FLOWCONFIG_FILE) if isfile(FLOWCONFIG_FILE) else {}
)
def success(self, msg: str):
self._print(TYPE_SUCCESS, msg)