github / github/copilot-cli

Add launch flag to bypass trust folder prompt

Aperta
#2,866 5 commenti 1 reazione 0 assegnatari Vedi su GitHub
area:non-interactive area:permissions
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

When automating `copilot` CLI from scripts it would be very helpful to have a way to opt-in to trusting the folder via a launch flag so that the folder doesn't first have to be trusted via an interactive session and answering the prompt manually, or by directly editing the `~\.copilot\config.json` file.

I'm imagining something like:

```
$ copilot --trust-folder --allow-all-tools
```

Related #1121

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start at the copilot CLI's launch argument handling and read related issue #1121 for existing context. Add a launch flag that opts the current folder into trust without an interactive prompt, including when combined with --allow-all-tools. Done means scripted launches can trust the folder without editing config.json or answering prompts manually.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
cli
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
66/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.