Add colors module

This commit is contained in:
Sebastián Ramírez 2020-01-02 15:21:08 +01:00
parent 2af53e676a
commit 0ed9efe956
2 changed files with 21 additions and 0 deletions

View file

@ -36,3 +36,4 @@ from .models import ( # noqa
FileTextWrite,
)
from .params import Argument, Option # noqa
from . import colors # noqa

20
typer/colors.py Normal file
View file

@ -0,0 +1,20 @@
# Variable names to colors, just for completion
BLACK = 'black'
RED = 'red'
GREEN = 'green'
YELLOW = 'yellow'
BLUE = 'blue'
MAGENTA = 'magenta'
CYAN = 'cyan'
WHITE = 'white'
RESET = 'reset'
BRIGHT_BLACK = 'bright_black'
BRIGHT_RED = 'bright_red'
BRIGHT_GREEN = 'bright_green'
BRIGHT_YELLOW = 'bright_yellow'
BRIGHT_BLUE = 'bright_blue'
BRIGHT_MAGENTA = 'bright_magenta'
BRIGHT_CYAN = 'bright_cyan'
BRIGHT_WHITE = 'bright_white'