cli/pkg/cmd/api
Mislav Marohnić 0a5e220231 Ignore EPIPE errors when writing to a closed pager
While a gh command is writing stdout to a pager, the user may choose to
close the pager program before the pager has read all the data on its
standard input. In that case, the parent gh process will receive an
EPIPE error, which would bubble up its error handling and cause it to
print something like:

    write |1: broken pipe

Since this was caused by an explicit user action of closing the pager,
and since the user probably doesn't want to see this uninformative
error, this informs our global error handling of this error and causes
it to be ignored.
2022-02-10 16:42:00 +01:00
..
api.go Ignore EPIPE errors when writing to a closed pager 2022-02-10 16:42:00 +01:00
api_test.go Dont execute jq filters or templates when api requests are not successful (#5088) 2022-01-29 09:32:01 +02:00
http.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
http_test.go Allow explicitly specifying the hostname for gh operations 2020-08-12 16:16:34 +02:00
pagination.go Correct benign mistake in off-by-one guard 2021-08-19 14:41:04 +01:00
pagination_test.go Automatically add per_page=100 to paginated REST requests 2020-06-23 18:42:57 +02:00