Fork me on GitHub
#polylith
<
2023-02-10
>
Yuhri Graziano Bernardes23:02:34

Hi everyone \o I'm trying to run some tests from my terminal, but I'm getting this error. Is there something missing?

seancorfield23:02:27

When using the poly tool as an installed "tool" for the CLI, the arguments need to conform to that style of invocation -- which is different to the -M:poly usage and the installed poly executable.

❤️ 2
seancorfield23:02:03

"tool" usage conforms to -T / -X style invocation so everything is key / value pairs.

❤️ 2
seancorfield23:02:53

If you look a https://polylith.gitbook.io/poly/install/install/install-as-clojure-cli-tool you'll see examples, such as clojure -Tpoly info loc true

❤️ 2
Yuhri Graziano Bernardes23:02:57

Make sense. I tried clojure -Tpoly test :dev true and it worked

seancorfield23:02:23

clojure -Tpoly test dev true would also work (symbols are accepted as well as keywords)

❤️ 2
seancorfield23:02:48

I tend to start the poly shell and work interactively from there, since then you get tab-completion on commands:

seancorfield23:02:36

t<tab>d<tab> gives you test :dev so it's a lot less typing -- and you aren't waiting for the the poly command to spin up each time.

👍 2