News for hackers. Stuff that matters.
Re:Show HN: Shelly: Write Terminal Commands in English by paletov on Wednesday January 17, 2024 @02:07AM (#39024264)
It opens the command in nano/vim in the terminal and lets you edit it. Saving executes the final version.

Currently, the user has to be experienced enough to know if a command is safe to be executed. However, you are right, and I'll look into adding a safety feature that signifies if a command is potentially dangerous.

Re:Show HN: Shelly: Write Terminal Commands in English by Ferret7446 on Wednesday January 17, 2024 @05:22AM (#39025864)
> Saving executes the final version

That is quite dangerous, and I assume that it is actually "on exit" and not "on save", as I assume it is implemented by creating a temp file and opening it with the editor. There are various ways that an editor can crash/abort which would automatically execute the command.