File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 18
18
if not openai .api_key :
19
19
# in order to use application, you need to set OPENAI_API_KEY
20
20
# 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 "
23
23
f"{ RED } Example: export OPENAI_API_KEY=your_openai_key{ RESET } " )
24
24
sys .exit (1 )
25
25
@@ -92,7 +92,7 @@ def one_shot_mode(prompt, do_execute=True):
92
92
print (f"{ GREEN } AI suggests command:{ RESET } { cmd } " )
93
93
if do_execute :
94
94
# 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 ()
96
96
if confirm == 'y' or confirm == '' :
97
97
run_shell_command (cmd )
98
98
else :
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " ghost-in-the-shell"
3
- version = " 0.1.3 "
3
+ version = " 0.1.4 "
4
4
description = " CLI with OpenAI integration"
5
5
readme = " README.md"
6
6
requires-python = " >=3.11"
You can’t perform that action at this time.
0 commit comments