python / python/pymanager

Allow the user to customise the columns displayed in `py list`

オープン
#89 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

enhancement
主要言語
Python
スター
344
フォーク
74
平均マージ
1日 3時間
マージ済み PR(30日)
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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、py list コマンドの --format 処理を特定し、単一項目の出力を既存の JSON 出力と比較します。tag,exe のようなカンマ区切りの値をどのように解析して表示するかを定義し、複数の選択されたフィールドが要求された順序で現れ、既存の単一値の動作を壊さないことを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。