diff --git a/autonomic/command/init.py b/autonomic/command/init.py index fc54813..5e6649a 100644 --- a/autonomic/command/init.py +++ b/autonomic/command/init.py @@ -3,6 +3,7 @@ import os import click +import emoji from PyInquirer import prompt from autonomic import logger @@ -60,9 +61,14 @@ def ask_to_login(): "filter": lambda val: val.lower(), } ] + answer = prompt(question) add_to_config(answer) + msg = "Welcome comrade {} :kissing:".format(answer["username"]) + emojized = emoji.emojize(msg, use_aliases=True) + log.info(emojized) + def create_configuration_file(): """Create toolbelt config file.""" diff --git a/setup.cfg b/setup.cfg index 60fb686..9bf5e8e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -44,6 +44,7 @@ zip_safe = False install_requires = click >= 7.1.1, <= 8.0 colorama >= 0.4.3, <= 0.5 + emoji >= 0.5.4, <= 0.6 pyinquirer >= 1.0.3, <= 1.1 ruamel.yaml >= 0.16.10, <= 0.17