refactor: migrar comando new para que utilice metodos usando questionary

This commit is contained in:
jt
2026-07-14 00:22:22 -03:00
parent 4968667dad
commit a5a753f429
6 changed files with 104 additions and 55 deletions
+7 -7
View File
@@ -3,7 +3,7 @@
import typer
from git_flow import GitFlowError
from git_flow.command.base import *
import git_flow.command.base as base
from git_flow.command import init, new, commit, merge, tag, release, branch
REPOSITORY_TOKEN_PATH = ".repository-token"
@@ -23,10 +23,10 @@ app.add_typer(branch.app)
def main():
try:
app()
except GitFlowError as e:
error(str(e))
except Exception as e:
error("Ocurrió un error inesperado: " + str(e))
except KeyboardInterrupt as e:
print()
error("Ejecución abortada")
except GitFlowError as e:
base.io_error(str(e), title="Git Flow")
except Exception as e:
base.io_error(str(e), title="Inesperado")
except KeyboardInterrupt as e:
base.io_error("Ejecución abortada")