Skip to content

marianoguerra/rebar3_otp_templates

Repository files navigation

Rebar3 OTP Behavior Templates

Rebar3 Erlang Templates for common OTP behaviors.

Setup

Do this only once:

mkdir -p ~/.config/rebar3/templates
git clone git@github.com:marianoguerra/rebar3_otp_templates.git ~/.config/rebar3/templates/rebar3_otp_templates

If there are updates in the repo with new templates you can update them locally with:

cd ~/.config/rebar3/templates/rebar3_otp_templates
git pull origin master

Usage

Modules are created in the current directory.

gen_server

$ rebar3 new gen_server name=foo

===> Writing foo.erl

gen_statem

$ rebar3 new gen_statem name=foo

===> Writing foo.erl

supervisor

$ rebar3 new supervisor name=sup child_name=sup_child

===> Writing sup.erl

Notes

About

A repository with rebar3 templates for OTP behaviors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published