Elixir/Erlang daily helpers and learning playground.
NOTE: mainly used as archive and global utils in .iex.exs, no other dependecies required except elixir!!
export MIX_DEBUG=1
mix h.hc https://api.github.com/repos/elixir-lang/elixir
# global
mise x elixir erlang -- mix h.hi
mix h.pkg lists the Hex package helper tasks. mix h.pkg info PACKAGE displays
package metadata, using the local cache when available and fetching from Hex otherwise.
mix h.pkg
mix h.pkg.info plug
mix h.pkg.info plug --force
mix h.pkg.open plug
mix h.pkg.open plug --kind docsThe cache defaults to ~/.cache/hex-pkgs; set MIX_PKGS_INFO_ROOT to use another directory. --force refreshes the cached response. Mix.PkgCache.get_info/2 is the cached programmatic entry point; Mix.PkgInfo.fetch/2 fetches directly and returns {:ok, info} or {:error, reason}.
# in mix.exs project/0
archives: [{:ehelper, "~> 0.2"}]
mix archive.install hex ehelper --force
mix h
mix local
## locally install or update
mix up