cli/pkg/cmd/pr/checks
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
..
fixtures pr and run check symbols revision 2021-08-05 02:13:55 -07:00
aggregate.go Add watch functionality to pr checks command (#4519) 2022-02-08 08:33:42 +01:00
checks.go Add watch functionality to pr checks command (#4519) 2022-02-08 08:33:42 +01:00
checks_test.go Add watch functionality to pr checks command (#4519) 2022-02-08 08:33:42 +01:00
output.go Add watch functionality to pr checks command (#4519) 2022-02-08 08:33:42 +01:00