Browse Source

repl command back

Namdak Tonpa 9 years ago
parent
commit
ece8cb0b14
4 changed files with 7 additions and 6 deletions
  1. 3 3
      doc/commands.tex
  2. 1 1
      include/mad.hrl
  3. BIN
      mad
  4. 3 2
      src/mad_utils.erl

+ 3 - 3
doc/commands.tex

@@ -17,7 +17,7 @@ Synrc mad has a simple interface as follows:
 It seems to us more natural, you can specify random
 It seems to us more natural, you can specify random
 commands set with different specifiers (options).
 commands set with different specifiers (options).
 
 
-\subsection{deps}
+\subsection{deps, dep}
 
 
 In rebar-like managers we are selecting deps from rebar.config:
 In rebar-like managers we are selecting deps from rebar.config:
 \vspace{1\baselineskip}
 \vspace{1\baselineskip}
@@ -43,7 +43,7 @@ Performs compilation of all known compilations backends in complilation profile
 \end{lstlisting}
 \end{lstlisting}
 \vspace{1\baselineskip}
 \vspace{1\baselineskip}
 
 
-\subsection{release, rel}
+\subsection{release, rel, bundle, bun}
 Taking all dependecies and resolve boot sequence according to dependecy order.
 Taking all dependecies and resolve boot sequence according to dependecy order.
 Storing this value in .applist. If release type is not defined ({\bf beam} in following example),
 Storing this value in .applist. If release type is not defined ({\bf beam} in following example),
 then {\bf script} release will be taken as a default.
 then {\bf script} release will be taken as a default.
@@ -75,6 +75,6 @@ MAD supports several releasing backends:
 \end{lstlisting}
 \end{lstlisting}
 \vspace{1\baselineskip}
 \vspace{1\baselineskip}
 
 
-\subsection{sh}
+\subsection{sh, repl, rep}
 
 
 Start REPL shell session.
 Start REPL shell session.

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"3703ac").
+-define(VERSION,"0b9df8").

BIN
mad


+ 3 - 2
src/mad_utils.erl

@@ -2,6 +2,8 @@
 -copyright('Sina Samavati').
 -copyright('Sina Samavati').
 -compile(export_all).
 -compile(export_all).
 
 
+atomize("static") -> static;
+atomize("deploy") -> deploy;
 atomize("app"++_) -> app;
 atomize("app"++_) -> app;
 atomize("dep")    -> deps;
 atomize("dep")    -> deps;
 atomize("deps")   -> deps;
 atomize("deps")   -> deps;
@@ -10,12 +12,11 @@ atomize("com"++_) -> compile;
 atomize("up")     -> up;
 atomize("up")     -> up;
 atomize("rel"++_) -> release;
 atomize("rel"++_) -> release;
 atomize("bun"++_) -> release;
 atomize("bun"++_) -> release;
-atomize("deploy") -> deploy;
 atomize("sta"++_) -> start;
 atomize("sta"++_) -> start;
 atomize("sto"++_) -> stop;
 atomize("sto"++_) -> stop;
 atomize("att"++_) -> attach;
 atomize("att"++_) -> attach;
 atomize("sh")     -> sh;
 atomize("sh")     -> sh;
-atomize("static") -> static;
+atomize("rep"++_) -> sh;
 atomize("pla"++_) -> release;
 atomize("pla"++_) -> release;
 atomize(Else)     -> Else.
 atomize(Else)     -> Else.