refactor: migrar comando new para que utilice metodos usando questionary
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user