Add launch flag to bypass trust folder prompt
未关闭
area:non-interactive
area:permissions
- 主要语言
- Shell
- 星标
- 11.2k
- 派生
- 1.9k
- 平均合并
- 14 小时 16 分钟
- 30 天内合并 PR
- 6
描述
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
贡献指南
调研方向
从 copilot CLI 的启动参数处理开始,并阅读相关 issue #1121 以了解现有上下文。添加一个启动标志,使当前文件夹无需交互式提示即可被信任,包括与 --allow-all-tools 结合使用时。完成标准是:通过脚本启动时,无需编辑 config.json 或手动回答提示即可信任该文件夹。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- shell
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 66/100