cli / cli/cli

Top level flag to specify directory to operate in

未关闭
#2,228 9 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Go
星标
46.3k
派生
9k
平均合并
2 天 6 小时
30 天内合并 PR
97

描述

### Describe the feature or problem you’d like to solve

For example your org has N number of projects you have cloned locally where N may be more then 100. To list all PRs on all projects you need to repeatedly access each project and run `gh pr list` for N times.

Unwanted scenario:
```
cd
gh pr list
cd ..
# Repeat N times
```

### Proposed solution

It would be nice to have such key in to level flags such `--dir`, `--repo` or `--project-path` to have such operation possible:

```
for proj in $(ls); do gh --project-path=$rpoj pr list; done
```
or to have kind of `.ghrc` where someone could list all current projects (configuration file in YAML, JSON, or INI format )

It would be helpful for DevOps teams they usually have to deal with all projects at the same time.

贡献指南

打开贡献指南

调研方向

从 issue 中描述的提议的顶层 `gh` 标志和 `gh pr list` 命令开始。将 `--dir`、`--repo` 和 `--project-path` 这几个替代方案与提议的 `.ghrc` 配置方案进行比较;只有在明确规定一种方案并定义其在各个本地项目中的行为后,工作才算完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
git, github, go
领域
cli, developer-experience
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。