On Thu, Jul 28, 2016 at 10:02 AM, derek <[email protected]> wrote:

> I'm interested how did that globally installing packages work? is it
> documented somwhere?
> http://elixir-lang.org/docs/master/mix/Mix.html (is there an online
> version for `mix help` ? from here it seems only find API references
> ?)


Check the docs for escript.install and archive.install,
http://elixir-lang.org/docs/master/mix/Mix.Tasks.Escript.Install.html and
http://elixir-lang.org/docs/master/mix/Mix.Tasks.Archive.Install.html
respectively.

On Thu, Jul 28, 2016 at 10:02 AM, derek <[email protected]> wrote:

> but I wonder is there a central place maintained all installable ez
> files ? is there always a compiled ez file maintained for each phoenix
> release ? why I can't see the ez file download link from
> https://github.com/phoenixframework/phoenix/releases ?



from this comment I wonder does hex.pm saved a compiled ez copy for
> each package's each release ?
> https://github.com/hexpm/hex_web/issues/379#issuecomment-234240573


No, that wouldn't work because it needs to be built on the local machine
because of potential version incompatibilities, hex.pm only stores source
code. The install tasks will fetch, build and install it for you.

On Thu, Jul 28, 2016 at 10:02 AM, derek <[email protected]> wrote:

> About global packages, I wonder if anyone is using elixir to write
> useful CLI tools ? or is phonenix and web server the only selling
> point?


> the question is: since I am not aware of a json parser in standard
> elixir library, if I want to write a CLI tool to test JSON API with
> some manipulation, probably I'll need to pull
> https://hex.pm/packages/poison as dependency, then what's the best way
> to deliver such a tool ?


That's what escripts are for. You host them on hex.pm and use
escript.install to install them.

-- 
Eric Meadows-Jönsson

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/CAM_eapjFq2gKU-NuG2cWrYmefW56tS_Vb_br941-dmSKyGhvVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to