Allow the user to customise the columns displayed in `py list`
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 344
- Forks
- 74
- Ø Merge
- 1 T. 3 Std.
- Gemergte PRs (30 T.)
- 7
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie damit, die Verarbeitung von --format im Befehl py list zu lokalisieren und dessen Ausgabe für ein einzelnes Element mit der bestehenden JSON-Ausgabe zu vergleichen. Legen Sie fest, wie durch Kommas getrennte Werte wie tag,exe geparst und dargestellt werden sollen, und überprüfen Sie anschließend, dass mehrere ausgewählte Felder in der angeforderten Reihenfolge erscheinen, ohne das bestehende Verhalten für einen einzelnen Wert zu beeinträchtigen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- cli
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100