Skip to content

Commit

Permalink
Fix func "make package-install".Add feature: name request
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry-Perexozhev committed Nov 22, 2023
1 parent 7267bb6 commit 130c698
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ publish:
poetry publish --dry-run

package-install:
python3 -m pip install dist/*.whl
poetry install
Binary file added brain_games/__pycache__/cli.cpython-311.pyc
Binary file not shown.
7 changes: 7 additions & 0 deletions brain_games/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import prompt

def welcome_user():
name = prompt.string('May I have your name? ')
print(f'Hello, {name}!')


Binary file modified brain_games/scripts/__pycache__/brain_games.cpython-311.pyc
Binary file not shown.
Binary file added brain_games/scripts/__pycache__/cli.cpython-311.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions brain_games/scripts/brain_games.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/usr/bin/env python3
from brain_games.cli import welcome_user

def greeting():
print('Welcome to the Brain Games!')

def main():
greeting()
welcome_user()

if __name__ == '__main__':
main()
Binary file modified dist/hexlet_code-0.1.0-py3-none-any.whl
Binary file not shown.
Binary file modified dist/hexlet_code-0.1.0.tar.gz
Binary file not shown.

0 comments on commit 130c698

Please sign in to comment.