We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35f3c44 commit d3ba7d3Copy full SHA for d3ba7d3
2 files changed
pytest.ini
@@ -0,0 +1,3 @@
1
+[pytest]
2
+pythonpath = .
3
+testpaths = tests
src/main.py
@@ -24,7 +24,15 @@ def main() -> None:
24
# Supported options: Azure OpenAI, GitHub Models, OpenAI API.
25
# See docs/setup.md for detailed configuration instructions.
26
27
- user_name = input("Enter your name: ")
+ try:
28
+ user_name = input("Enter your name: ").strip()
29
+ except EOFError:
30
+ user_name = "Builder"
31
+ print("Enter your name: [auto] Builder")
32
+
33
+ if not user_name:
34
35
36
print(get_greeting(user_name))
37
print("\nNext steps:")
38
print(" 1. Read docs/setup.md to configure your environment.")
0 commit comments