Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to let-bind without macros?(let [ls (sh/program "ls")] (ls)) #44

Open
theronic opened this issue Oct 11, 2018 · 0 comments
Open

Comments

@theronic
Copy link

theronic commented Oct 11, 2018

I found the conch macros to have high cognitive overhead. For fear of side-effects, I went and glossed over let-programs first before trying it.

It would be nice if conch could return a lazy program via let that did path resolution at run-time, perhaps with existence (and permission) checking at definition time. E.g.:

(require '[me.raynes.conch :as sh])
(let [docker (sh/program "docker")]
  (docker "build" "more args go here"))

I believe this would satisfy 99% of use-cases and would make Conch more approachable :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant