refactor: muevo constantes a modulo git_flow para centralizar uso
This commit is contained in:
+1
-9
@@ -1,14 +1,6 @@
|
||||
import sys
|
||||
|
||||
|
||||
COLOR_BLACK = '\033[30m'
|
||||
COLOR_RED = '\033[31m'
|
||||
COLOR_GREEN = '\033[32m'
|
||||
COLOR_YELLOW = '\033[33m'
|
||||
COLOR_BLUE = '\033[34m'
|
||||
COLOR_BLACK_BOLD = '\033[1;30m'
|
||||
COLOR_RESET = '\033[0m'
|
||||
|
||||
from git_flow import COLOR_BLACK_BOLD, COLOR_BLUE, COLOR_GREEN, COLOR_RED, COLOR_RESET, COLOR_YELLOW
|
||||
|
||||
def confirm(prompt, default: bool = True):
|
||||
user_input = input(prompt + (" [Y/n]: " if default else " [y/N]: "))
|
||||
|
||||
Reference in New Issue
Block a user