Skip to content

Commit d910523

Browse files
committed
Добавлен модуль cli.py в brain_games.py и обновлена версия пакета
1 parent 099ea94 commit d910523

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

brain_games/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

2+
import prompt
3+
24
def welcome_user():
3-
import prompt
45
name = prompt.string('May I have your name? ')
56
print(f'Hello, {name}')

brain_games/scripts/brain_games.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env python3
22

3+
from brain_games.cli import welcome_user
4+
35
def main():
46
print('Welcome to the Brain Games!')
57

68
if __name__ == '__main__':
79
main()
10+
welcome_user()

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[project]
22
name = "hexlet-code"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.10"
7-
dependencies = []
7+
dependencies = [
8+
"prompt>=0.4.1",
9+
]
810

911
[build-system]
1012
requires = ["hatchling"]

uv.lock

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)