bat
bat copied to clipboard
Go implement CLI, cURL-like tool for humans
``` $ bat -v -f POST https://api.weibo.com/oauth2/access_token redirect_uri=http://127.0.0.1/project/oauth/callback ``` the redirect_uri did not sent to server

The following example results in a string as the value, instead of raw json: ``` > bat POST :8000 name:='{0:0}' POST / HTTP/1.1 Host: localhost:8000 Accept: application/json Accept-Encoding: gzip, deflate...
https://github.com/sharkdp/bat
The current bat help message says: ``` ... ITEM: Can be any of: Query string key=value Header key:value Post data key=value File upload key@/path/file ... ``` I was trying to...
I've tried ` go build -ldflags '-extldflags "-fno-PIC -static"' -buildmode pie -tags 'osusergo netgo static_build'` and ` go build -ldflags '-extldflags "-fPIC -static"' -buildmode pie -tags 'osusergo netgo static_build'`. Both...
Every exported function in a program should have a doc comment. The first sentence should be a summary that starts with the name being declared. From [effective go](https://golang.org/doc/effective_go.html#commentary). PR generated...
I need to post JSON containing Lucene queries, that tends to contain colons. E.g. q=cm:title:foo That did not work though, bat tries to parse it as a header and then...
Reading https://github.com/astaxie/bat/blob/master/bat.go#L195-L204 bat attempts to parse stdin as JSON, and when it succeeds, the body content may be different to what was originally submitted. For example if that content has...