From b5d4cb91f80c833795a2d87050c3674bb7aecdc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 3 Oct 2017 13:39:41 +0200 Subject: Update Hugo, docs --- docs/en/erlang.mk/1/guide/shell/index.html | 103 +++++++++++++++++------------ 1 file changed, 61 insertions(+), 42 deletions(-) (limited to 'docs/en/erlang.mk/1/guide/shell') diff --git a/docs/en/erlang.mk/1/guide/shell/index.html b/docs/en/erlang.mk/1/guide/shell/index.html index 28a13113..873e7b2f 100644 --- a/docs/en/erlang.mk/1/guide/shell/index.html +++ b/docs/en/erlang.mk/1/guide/shell/index.html @@ -7,7 +7,7 @@ - + Nine Nines: Erlang shell @@ -67,53 +67,72 @@

Erlang shell

-

Erlang.mk provides a convenient target for starting a shell -with all the paths set properly to experiment with your code.

-
-

Configuration

-
-

The SHELL_DEPS variable can be used to define dependencies -that are only to be used when the make shell command is called. -For example, if you want to use kjell as your shell:

-
-
-

Dependencies are downloaded and compiled the first time you -run the make shell command.

-

You can customize the executable used to start the Erlang shell. -To continue with our example, if you want to use kjell as your -shell, you also need to change SHELL_ERL and point it to the -kjell executable:

-
-
-

You can specify additional options to be used when starting the -shell using the SHELL_OPTS variable:

-
-
-

Any of the usual erl options can be used, including -eval:

-
-
-
-
-
-

Usage

-
-

To start the shell, all you need is the following command:

-
-
-
$ make shell
-

The shell can be stopped as usual with a double Ctrl+C or the -command q()..

-
-
+

Erlang.mk provides a convenient target for starting a shell +with all the paths set properly to experiment with your code.

+
+

Configuration

+
+

The SHELL_DEPS variable can be used to define dependencies +that are only to be used when the make shell command is called. +For example, if you want to use kjell as your shell:

+
+
+
SHELL_DEPS = kjell
+

Dependencies are downloaded and compiled the first time you +run the make shell command.

+

You can customize the executable used to start the Erlang shell. +To continue with our example, if you want to use kjell as your +shell, you also need to change SHELL_ERL and point it to the +kjell executable:

+
+
+
SHELL_ERL = $(DEPS_DIR)/kjell/bin/kjell
+

You can specify additional options to be used when starting the +shell using the SHELL_OPTS variable:

+
+
+
SHELL_OPTS = -setcookie chocolate
+

Any of the usual erl options can be used, including -eval:

+
+
+
SHELL_OPTS = -eval 'my_app:run()'
+
+
+
+

Usage

+
+

To start the shell, all you need is the following command:

+
+
+
$ make shell
+

The shell can be stopped as usual with a double Ctrl+C or the +command q()..

+
+
+ + +