HNHacker News
TopNewBestAskShowJobs

jonaslu

11 karma · joined September 28, 2019

I program - some of it is over at https://github.com/jonaslu I blog over at https://www.iamjonas.me I compose music - https://soundcloud.com/aestheticsofaloss (also on spotify and other platforms)
submissionscomments
jonaslu··on Show HN: Simplify installing, running, ruining and reverting databases locally
Hello, I've posted about this once before about 3 years ago: https://news.ycombinator.com/item?id=21200216

Mucho mucho has happened since and I figured it was worth a re-post. I'd also appreciate any feedback!

jonaslu··on Show HN: Ain is a terminal API client
Oh, so that's the hostname in my bash prompt.

I've gotten so used to it that it didn't even occur to me that it could be confusing.

jonaslu··on Show HN: Ain is a terminal API client
Right, while theoretically possible to do other things than HTTP with the curl backend the other sections do not make sense and it's purpose is HTTP. I'll stress the HTTP in the future, thanks!

What would be the benefits of using libcurl instead of shelling out? Would that work without pain on windows?

jonaslu··on Show HN: Ain is a terminal API client
Great :)

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.

jonaslu··on Show HN: Ain is a terminal API client
Posted here because I'd like feedback on it.

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.