Wynn Netherland changelog.com/posts

agner: Rebar-friendly Erlang package index

As the recent popularity of Erlang continues to grow, a growing number of libraries and tools are being developed for the twenty five year old functional programming language from Ericsson.

Agner, or A Giant Nebula of Erlang Repositories, is a project from Yurii Rashkovskii that aims to provide a package index for Erlang bits using Git as its index. The main goal of the project is to help developers discover Erlang projects and use them easily in their code. Agner scans a list of known indices (the default being http://github.com/agner), looking for repositories that end in .agner. These repos contain information on where to actually get the source:

{name, "getopt"}.
{description, "Erlang module to parse command line arguments using the GNU getopt syntax"}.
{url, {git, "https://github.com/jcomellas/getopt.git","HEAD"}}.
{rebar_compatible, true}.
{applications, [getopt]}.
{authors, ["Juan Jose Comellas"]}.
{license, "BSD"}.

Agner also works with Rebar the Erlang build tool from Basho (featured on Episodes 0.1.4 and #40).

Once installed, Agner provides a command line tool to list packages:

agner list [-d/--descriptions]

You can get more info on a package with spec:

agner spec PACKAGE [-v/--version package_version]

Packages can be downloaded with fetch:

agner fetch PACKAGE [DESTDIR] [-v/--version package_version]

For more info about Rebar integration and other options, be sure and check the rather nice README

[Source on GitHub]


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00