SYNOPSIS
MAD is the small and fast rebar replacement.
INTALL
Place MAD binary into
$PATH or
/usr/local/bin:
# curl -fsSL \
https://raw.github.com/synrc/mad/master/mad > mad \
&& chmod +x mad \
&& sudo cp /usr/local/bin
HELP
MAD accepts a list of words. This list of words contains special words,
delimiters or commands.
Words between commands are arguments for the nearest command from left.
$ mad
MAD Manage Dependencies ad426a
invoke = mad | mad params
params = [] | command [options] params
command = app [sample] | deps | clean | compile | strip
| bundle [beam|script] | get [repo] | up [name]
| start | stop | attach | repl | static [watch|min]
APP
Create predefined sample applications built in MAD with a given name:
$ mad app ex && cd ex
Created: "ex/sys.config"
Created: "ex/apps/ex/priv/static/spa/index.htm"
Created: "ex/apps/ex/rebar.config"
Created: "ex/apps/ex/priv/templates/index.html"
Created: "ex/apps/ex/src/ex.erl"
Created: "ex/rebar.config"
Created: "ex/apps/ex/src/index.erl"
Created: "ex/apps/rebar.config"
Created: "ex/vm.args"
Created: "ex/apps/ex/src/ex.app.src"
Created: "ex/apps/ex/priv/static/synrc.css"
Created: "ex/apps/ex/src/routes.erl"
OK
STATIC
DEPS
$ mad deps
==> dependency: "git://github.com/voxoz/erlydtl" tag: []
==> dependency: "git://github.com/voxoz/cowlib" tag: []
==> dependency: "git://github.com/voxoz/ranch" tag: []
==> dependency: "git://github.com/voxoz/gproc" tag: []
==> dependency: "git://github.com/synrc/fs" tag: {tag,"4.10"}
==> dependency: "git://github.com/synrc/sh" tag: {tag,"2.10"}
==> dependency: "git://github.com/synrc/mad" tag: {tag,"4.10"}
==> dependency: "git://github.com/synrc/active" tag: {tag,"4.10"}
==> dependency: "git://github.com/synrc/nitro" tag: {tag,"3.10"}
==> dependency: "git://github.com/synrc/n2o" tag: {tag,"5.10"}
GET
$ mad get kvx
==> dependency: "https://github.com/synrc/kvx" tag: []
OK
UP
BUNDLE
$ mad bundle script sample
/
REPL
$ mad repl
$ open http://127.0.0.1:8001
/