Skip to content

Commit

Permalink
changed cli a bit
Browse files Browse the repository at this point in the history
Signed-off-by: hikarikumo <[email protected]>
  • Loading branch information
hikarikumo committed Dec 17, 2023
1 parent 51fa5d6 commit 654ca34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
10 changes: 10 additions & 0 deletions brain_games/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ def welcome_user():
user_name = prompt.string('May I know your name? ')
print('Hello, ', user_name, '!', sep='')
return user_name


def main():
"""Script to say hi to user."""
greet_first()
welcome_user()


if __name__ == '__main__':
main()
9 changes: 1 addition & 8 deletions brain_games/scripts/brain_games.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@
current_script_dir = os.path.dirname(__file__)
brain_games_path = os.path.join(current_script_dir, '..')
sys.path.append(brain_games_path)
from cli import greet_first
from cli import welcome_user


def main():
"""Script to say hi to user."""
greet_first()
welcome_user()
from cli import main


if __name__ == '__main__':
Expand Down

0 comments on commit 654ca34

Please sign in to comment.