diff --git a/.gitignore b/.gitignore index 8cbab93bc..a866b8709 100644 --- a/.gitignore +++ b/.gitignore @@ -88,6 +88,10 @@ venv/ ENV/ env3/ +# pipenv +Pipfile +Pipfile.lock + # Spyder project settings .spyderproject .spyproject diff --git a/docs/index.html b/docs/index.html index 656bbbd46..971eeaa5d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -83,7 +83,7 @@

Configure your Auth Token

Run this command
- evalai set_token <auth_token> + evalai set-token <auth_token>
@@ -97,7 +97,7 @@

View your Auth Token

Run this command
- evalai get_token + evalai get-token
diff --git a/evalai/utils/text_styling.py b/evalai/utils/text_styling.py new file mode 100644 index 000000000..142ee187c --- /dev/null +++ b/evalai/utils/text_styling.py @@ -0,0 +1,27 @@ + +from click import echo, style + + +def print_message(message, error=False): + + style_message = "" + + index = 0 + + for i in list(message.split("`")): + + if index % 2: + style_message += style(i, fg="cyan") + + elif error: + style_message += style(i, fg="red", bold=True) + + else: + style_message += style(i, fg="green") + + index += 1 + + echo( + style_message, + color=True + )