4 ms·
Interesting. Is it for testing out parts of a shell script or does it have more uses?
by phero_cnstrcts 3y ago
Interesting. Is it for testing out parts of a shell script or does it have more uses?
- buf 3y agonot just a shell script. Any code. I could have a rails console running below in a pane and send rails code directly from the file above. Works with anything
- thristian 3y agoI find it incredibly useful for iterating on SQL queries. Write a query, send to the database, examine the result, tweak the query a little, go around again.
- ilyt 3y agoI just use that feature in IDE...
- perrygeo 3y agoUseful for executable documentation or runbooks, whatever you call the next level above scripts. You check your scripts into source control but how do you invoke the script? Copy and paste the example? Type it by hand every time? There's no need to copy-paste from a README into a terminal when you can "send" it.