INTRO
MAD module provides user level interface for console commands.
PROFILE
Each MAD profile must imeplent exposed API:
Each function from exposed API has same signature from list of string to sum of nil and error protocols.
compile(list(string())) -> return().
app(list(string())) -> return().
get(list(string())) -> return().
release(list(string())) -> return().
clean(list(string())) -> return().
start(list(string())) -> return().
stop(list(string())) -> return().
sh(list(string())) -> return().
deps(list(string())) -> return().
up(list(string())) -> return().
sh(list(string())) -> return().
fetch(list(string())) -> return().
static(list(string())) -> return().
eunit(list(string())) -> return().
strip(list(string())) -> return().
LOOP
main(list(string())) -> integer().
Simple yet understandable command processing and error loop. Function atomize/1 helps to accumulate known arguments as atoms. Function profile/0 retrieves module with MAD API implementation. main/1 function returns error status to OS with halt.
This module may refer to: mad_local.