refactor: use base.io_ methods

This commit is contained in:
jt
2026-07-16 22:25:20 -03:00
parent e4833c9ed9
commit add4cd2747
3 changed files with 30 additions and 29 deletions
+2 -7
View File
@@ -20,13 +20,8 @@ def commit():
else:
raise GitFlowError("Debe agregar algún cambio al indice para continuar.")
commit_type = base.io_choice("Tipo de commit", COMMIT_TYPES)
commit_message = base.io_prompt(
"Mensaje de commit",
validator=lambda s: 0 < len(s) and len(s) < 100,
instruction="100 caracteres máximo",
)
message = commit_type + ": " + commit_message
message = base.get_commit_message()
commit_type = message[:message.index(':')]
if branch.startswith(WIP_BRANCH_PREFIX):
original_branch = branch.removeprefix(WIP_BRANCH_PREFIX)