Fork me on GitHub
#polylith
<
2021-08-21
>
seancorfield21:08:43

I'm working on a PR for the poly tool to make it usable with the CLI -X option and installable as a "tool" for the -T option (in the 1.10.3.933 or later CLI). This is for issue 114: https://github.com/polyfy/polylith/issues/114 -- a first draft of the PR is up and you can help me by trying it out and providing feedback:

clojure -Ttools install io.github.polyfy/polylith '{:git/sha "2a42efbd508a861a9e7a78ae25143e3ebb066942" :deps/root "projects/poly"}' :as poly
That will install poly from the latest commit on the PR. Then you can get help via the CLI:
clojure -A:deps -Tpoly help/doc
And you can create a new workspace to play with:
clojure -Tpoly create w example top-ns org.corfield
That's shorthand for clojure -Tpoly create entity workspace name example top-ns org.corfield and here's the workspace it created:
ls example/

bases  components  deps.edn  development  logo.png  projects  readme.md  workspace.edn
and all the usual poly commands should work (with the CLI's EDN-based command-line arguments):
clojure -Tpoly info

  stable since: be07957

  projects: 1   interfaces: 0
  bases:    0   components: 0

  project      alias  status   dev
  --------------------------   ---
  development  dev     s--     s--

  interface  brick   dev
  ----------------   ---

🎉 6
tengstrand03:08:55

Cool. I added a comment in the PR.

seancorfield04:08:45

I don't see it. Link?

tengstrand05:08:48

Now you should see it.

seancorfield06:08:58

Yup. Responded to both comments.

seancorfield21:08:00

There's an updated version of the tool in the PR, in case anyone wants to try it:

clojure -Ttools install io.github.polyfy/polylith '{:git/sha "2a42efbd508a861a9e7a78ae25143e3ebb066942" :deps/root "projects/poly"}' :as poly

tengstrand21:08:54

I left a comment in the PR.