Hacker News new | ask | show | jobs
by ilaksh 1274 days ago
Here's the one I built:

Get an OpenAI API key. Then `npm i -g askleo` and set env var OPENAI_API_KEY

`> askleo how large is the average dog`

`> runleo list files in reverse date order`

Note that runleo just executes it without confirmation.

1 comments

"runleo just executes it without confirmation"

I'm feeling lucky!

This is one step beyond `curl | sh`. Bold move.

It's very unlikely to randomly delete your hard disk, and it's easy to set up a VM or container for development..also it may be a command that you use all the time but can't remember the syntax, and it's just retrieving information.

There are a lot of cases where displaying the command first and asking for a confirmation is just an unnecessary step.