cli/pkg
endorama 825328031f
Add watch functionality to pr checks command (#4519)
* pr-checks: extract webMode

* pr-checks: extract checks information collection

* pr-checks: extract output utilities

* pr-checks: implement watch flag

* pr-checks: remove SIGINT interceptor

* pr-checks: exit with error if some task has failed

* update flags help text

* update default interval to 10s

* move interval flag parse to RunE

* refactor checksRunWatchMode to use infinite loop

* Refactor printTable function

* Refactor collect function

* Set up checksRun to use new refactored functions and simplify logic a bit

* Add tests

* Always set interval in opts

* use Duration flag

* Revert back to using int flag for consistency with run watch

* Use run watch screen clearing mechanism

* Re-add pager support

Co-authored-by: Sam Coe <samcoe@users.noreply.github.com>
2022-02-08 08:33:42 +01:00
..
cmd Add watch functionality to pr checks command (#4519) 2022-02-08 08:33:42 +01:00
cmdutil undo overzealous find/replace 2022-01-14 15:27:05 -06:00
export Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
extensions binary extension create 2021-11-23 16:53:45 -06:00
findsh go fmt 2021-12-02 16:12:24 +01:00
githubsearch Convert bool to string early for pr list draft flag 2021-09-20 11:29:37 -07:00
githubtemplate Use T.TempDir for temporary dirs in tests (#3580) 2021-05-07 12:21:26 +02:00
httpmock Adding gh release download for .zip and .tar.gz 2021-11-30 15:52:51 +01:00
iostreams Have TerminalTheme invoke DetectTerminalTheme if necessary 2022-01-14 15:42:02 +01:00
jsoncolor Fix "null" display in colored JSON output 2021-05-12 16:56:52 +02:00
liveshare Fix flaky liveshare session test (#5111) 2022-01-27 11:20:50 -05:00
markdown Preserve newlines in GitHub-flavored markdown 2022-01-13 19:41:01 +01:00
prompt Have NewAskStubber perform auto-cleanup 2022-01-14 18:52:00 +01:00
set Add GH_HOST to hosts list if it has corresponding auth token (#5087) 2022-01-29 07:37:24 +00:00
surveyext Add --generate-notes flag to gh release create command. (#4467) 2021-12-08 15:20:59 +04:00
text Add helper template functions for rendering tables (#3519) 2021-08-23 21:00:25 +02:00