refactor: realizo parseo de flowconfig antes de ejecutar run, no en __init__
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user