BuilderIO / BuilderIO/ai-shell

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

Open
#86 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
377
PR merge metrics
No merged PRs in 30d

Description

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 ;-)

Contributor guide

Open the contributing guide

Research direction

Start at the CLI entry point handling the `ai -s` command and trace how the execution confirmation prompt is selected. Add the requested `-y` invocation so the prompt is skipped, while the existing command continues to prompt without it. Verify the example shell-script usage behaves as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.