Interactive item listing: --output interactive #324

Open
opened 2021-01-12 17:06:41 +00:00 by noerw · 0 comments
Member

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 2021-01-12 17:06:41 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#324
No description provided.