Allow the user to customise the columns displayed in `py list`
まだ誰も着手していません。
評価
調査の方向性
まず、py list コマンドの --format 処理を特定し、単一項目の出力を既存の JSON 出力と比較します。tag,exe のようなカンマ区切りの値をどのように解析して表示するかを定義し、複数の選択されたフィールドが要求された順序で現れ、既存の単一値の動作を壊さないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 344
- フォーク
- 74
- 平均マージ
- 1日 3時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python/pymanager のほかの issue
-
documentation
難易度 1/5 1〜3時間 初心者へのやさしさ 75/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
python/pymanager の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
🐛 Bug 🔔 Pending processing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
jumpserver/jumpserver#17584 ·