Show HN: Ain is a terminal API client
github.com
github.com
The backstory is: Ain was born out of the frustration of working with many API-endpoints in GUI clients. While pretty, I could't use any shell-scripts or commands such as `uuidgen` as input to the endpoints without copy pasting from a terminal. And I had to copy-paste the resulting output back into the terminal to further slice and dice it.
I had become a human pipe and my ctrl+c, ctrl+v fingers were hurting.
It's done in go and uses curl and or httpie for making the actual calls.
What is "asuslaptop" for example? It is confusing.
Use standard commands in demos, not scripts or aliases.
I've gotten so used to it that it didn't even occur to me that it could be confusing.
Also, don't shell out to curl, that's weak sauce. Use libcurl, it has Go bindings.
What would be the benefits of using libcurl instead of shelling out? Would that work without pain on windows?
I don't understand what you mean, what do you want to read from a text-file?
Piping it into python or go: Sure. Just read from STDIN in your python or go binary. Or use temp-file redirection if you need to the results from a file.