Interactive item listing: `--output interactive` #324

Open
opened 11 months ago by noerw · 0 comments
noerw commented 11 months ago
Collaborator

A new interactive output mode --output interactive for item listings which have plenty of attributes or potentially long textual content (issues, pulls, releases, repos, ...):

  1. After fetching, display a listing with a summary (index + title), which is filterable & selectable using survey.Select.
  2. Selecting an item shows its details
  3. Where applicable: A prompt follows asking if comments should be shown
  4. Where applicable: A prompt with actions (comment, close, checkout, review, merge, ..., quit)
  5. back to 4 until quit action is selected

Initial inspiration comes from sip issues

Maybe we can add a configuration option PreferInteractive, opting into default interactive modes like this (+ in other places, such as prompting for comments in ` )

A new interactive output mode `--output interactive` for item listings which have plenty of attributes or potentially long textual content (issues, pulls, releases, repos, ...): 1. After fetching, display a listing with a summary (index + title), which is filterable & selectable using `survey.Select`. 2. Selecting an item shows its details 3. Where applicable: A prompt follows asking if comments should be shown 4. Where applicable: A prompt with actions (comment, close, checkout, review, merge, ..., quit) 5. back to 4 until `quit` action is selected Initial inspiration comes from [`sip issues`](https://gitea.com/jolheiser/sip/src/branch/master/sdk/issues.go) Maybe we can add a configuration option `PreferInteractive`, opting into default interactive modes like this (+ in other places, such as prompting for comments in ` )
noerw added the
kind/proposal
label 11 months ago
6543 referenced this issue from a commit 3 months ago
Sign in to join this conversation.
Loading…
There is no content yet.