BuilderIO / ai-shell

A CLI that converts natural language to shell commands.
MIT License
4.11k stars 264 forks source link

Allow users to specify a `-y` argument for not asking to execute the script #86

Open pzim-devdata opened 1 year ago

pzim-devdata commented 1 year ago

Hello,

Thank you very much for your program.

I would like to create a script with for example this command :

#!/bin/bash
ai -s open nemo in the home folder

Unfortunately it doesn't works because of the prompt :

◆ Exécuter ce script? │ ● ✅ Oui (Allons-y!) │ ○ 📝 Modifier │ ○ 🔁 Réviser │ ○ 📋 Copier │ ○ ❌ Annuler └

Could it be possible to add a -y argument for not showing this prompt ?

#!/bin/bash
ai -s -y open nemo in the home folder

Thanks ;-)