We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70a8078 + ad9d303 commit 3081a8eCopy full SHA for 3081a8e
aishell/cli.py
@@ -17,8 +17,15 @@ def ask(question: str, use_chatgpt: bool = False):
17
query_client = GPT3Client()
18
19
console = Console()
20
- with console.status(f'[green] Asking `{question}` ...'):
+ with console.status(
21
+ f'''
22
+[green] AiShell is thinking of `{question}` ...[/green]
23
+
24
+[italic]AiShell is not responsible for any damage caused by the command executed by the user.[/italic]'''.strip(), ):
25
response = query_client.query(question)
26
console.print(f'[italic]ai$hell: {response}\n')
27
- os.system(response)
28
+ will_execute = typer.confirm('Execute this command?')
29
30
+ if will_execute:
31
+ os.system(response)
0 commit comments