5

创建 escript 应用程序后:

$ rebar3 new escript hello

我可以使用 rebar3 运行,而不是escriptize先调用吗?

即这样的东西?

$ rebar3 run
4

1 回答 1

3

One solution might be to add a "run" directive to your makefile instead - this way you can call make run which does the escriptize step and runs the result.

Depending on what you really want to achieve running ./rebar3 shell might help you - I do this sometimes so I can debug portions of code just by running the required functions.

Finally you could always write a rebar plugin that extends the escriptize step ;) - never done it myself for rebar3 but has to be easier than the old rebar...

于 2016-07-10T22:59:38.363 回答