Let there be emoji

This commit is contained in:
Luke Murphy 2020-04-11 00:26:13 +02:00
parent e5df45650d
commit 2c894b5d1d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@
import os import os
import click import click
import emoji
from PyInquirer import prompt from PyInquirer import prompt
from autonomic import logger from autonomic import logger
@ -60,9 +61,14 @@ def ask_to_login():
"filter": lambda val: val.lower(), "filter": lambda val: val.lower(),
} }
] ]
answer = prompt(question) answer = prompt(question)
add_to_config(answer) 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(): def create_configuration_file():
"""Create toolbelt config file.""" """Create toolbelt config file."""

View File

@ -44,6 +44,7 @@ zip_safe = False
install_requires = install_requires =
click >= 7.1.1, <= 8.0 click >= 7.1.1, <= 8.0
colorama >= 0.4.3, <= 0.5 colorama >= 0.4.3, <= 0.5
emoji >= 0.5.4, <= 0.6
pyinquirer >= 1.0.3, <= 1.1 pyinquirer >= 1.0.3, <= 1.1
ruamel.yaml >= 0.16.10, <= 0.17 ruamel.yaml >= 0.16.10, <= 0.17