Skip to content

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

Description

@theronic

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 :).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions