andrewchambers / janet-sh

Shorthand shell like functions for janet.
82 stars 6 forks source link

Macro to run several commands #13

Closed eshrh closed 2 years ago

eshrh commented 2 years ago

This patch adds the sh/prog macro which allows running several shell commands sequentially without having to either a. put their commands in an array of strings (like in sh/run*) b. have to type (sh/$ ...) several times You can now just do

(sh/prog (pwd) (ls -a) ...)