Open hugoduncan opened 3 years ago
We could add a flag to install
that skips global and local config (--no-global
, --no-local
). In that case glam install
will only return the paths for the installed tool(s) on the command line. How does that sound?
@hugoduncan Hmm, I think glam-bin
already does this by default. The local and global config paths are stored in files but not printed to stdout.
user=> (require '[babashka.process :refer [$]])
nil
user=> (-> ($ glam-bin install clj-kondo/clj-kondo) :out slurp)
"/Users/borkdude/.glam/repository/clj-kondo/clj-kondo/2020.09.09\n"
When using glam from code that invokes command line tools directly, without using a shell, make it simple to get the installed path of a specific package, preferably as a single call that installs the tool if needed.
This would remove the need to parse the output of
install
to find the path component that refers to a specific tool.