Skip to content

Commit f672d82

Browse files
committed
informing user that "Enter" executes command
1 parent f2c7516 commit f672d82

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
if not openai.api_key:
1919
# in order to use application, you need to set OPENAI_API_KEY
2020
# provide example usage
21-
print(f"{RED}In order to use this application, you need to set OPENAI_API_KEY environment variable.{RESET}
22-
\n"
21+
print(f"{RED}In order to use this application, you need to set OPENAI_API_KEY environment variable.{RESET}"
22+
"\n"
2323
f"{RED}Example: export OPENAI_API_KEY=your_openai_key{RESET}")
2424
sys.exit(1)
2525

@@ -92,7 +92,7 @@ def one_shot_mode(prompt, do_execute=True):
9292
print(f"{GREEN}AI suggests command:{RESET} {cmd}")
9393
if do_execute:
9494
# Confirm or auto-run:
95-
confirm = input("Execute this command? (y/n) ").strip().lower()
95+
confirm = input("Execute this command? \n Press 'Enter' for yes").strip().lower()
9696
if confirm == 'y' or confirm == '':
9797
run_shell_command(cmd)
9898
else:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ghost-in-the-shell"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "CLI with OpenAI integration"
55
readme = "README.md"
66
requires-python = ">=3.11"

0 commit comments

Comments
 (0)