cli/pkg/cmd/api
Mislav Marohnić 7033021637 gh api: fix passing file/stdin contents via field arguments
Reading from file via `-F foo=@myfile.txt` syntax would result in
`[]byte` Go type, which by default gets serialized to JSON in base64
format, which we don't want here.

Traverse all parameters and convert any `[]byte` into `string` before
JSON serialization.
2020-06-03 16:00:52 +02:00
..
api.go Add test for showing response headers 2020-05-20 16:28:27 +02:00
api_test.go Ensure that cobra command tests don't write to system stdout/stderr 2020-05-20 16:28:35 +02:00
http.go gh api: fix passing file/stdin contents via field arguments 2020-06-03 16:00:52 +02:00
http_test.go gh api: fix passing file/stdin contents via field arguments 2020-06-03 16:00:52 +02:00