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
+3 -1
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import os
from os.path import isfile
import sys
import datetime
import requests
@@ -15,7 +16,7 @@ from git_flow.command.init import InitCommand
from git_flow.command.merge import MergeCommand
from git_flow.command.new import NewCommand
from git_flow.command.tag import TagCommand
from git_flow.git import BUMP_VERSION, Git
from git_flow.git import BUMP_VERSION, FLOWCONFIG_FILE, Git
from git_flow.io import *
@@ -54,6 +55,7 @@ class GitFlowCommand(Command):
for command in self.commands:
if command.name() == args.command:
command.flowconfig = Git.get_config(FLOWCONFIG_FILE) if isfile(FLOWCONFIG_FILE) else {}
return command.run(args)