Allow the user to customise the columns displayed in `py list`
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 344
- 派生
- 74
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 7
描述
Is your feature request related to a problem? Please describe.
I don't find the default display of py list particularly useful. The aliases take up a lot of space and aren't very helpful (they are easily deducible from the rest of the data). Ideally, I'd like to be able to choose more useful information to display in place of that column.
Describe the solution you'd like
The --format option allows you to display a single data item (--format=exe). That's fine, but it would be nice to be able to choose multiple values. Something like --format=tag,exe.
Describe alternatives you've considered
You can get this sort of report by piping --format=json into jq, or into a custom formatter, but that's fairly clumsy.
Additional context
Alternative to #86. The approach here is probably overkill, but I've filed it as an option in case changing the default format is unacceptable.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 py list 命令对 --format 的处理,并将其单项输出与现有的 JSON 输出进行比较。定义应如何解析和呈现逗号分隔的值(例如 tag,exe),然后验证多个选定字段是否按请求的顺序显示,同时不破坏现有的单值行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100