choptastic / rebar3_dirs

Rebar3 Plugin to list important directories for rebar3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rebar3_dirs

A rebar plugin to print important directories. This is particularly useful if you are in an environment where the REBAR_CACHE_DIR environment variable is being set, as that can cause some confusion

Add to rebar.config

Add the plugin to your rebar config:

{plugins, [
    [rebar3_dirs]
]}.

Usage

Printing all directories

Then just call your plugin from the shell

$ rebar3 dirs
base_dir: /home/user/code/myapp/_build/default
deps_dir: /home/user/code/myapp/_build/default/lib
root_dir: /home/user/code/myapp/.
checkouts_dir: /home/user/code/myapp/_checkouts
checkouts_out_dir: /home/user/code/myapp/_build/default/checkouts
plugins_dir: /home/user/code/myapp/_build/default/plugins
lib_dirs: apps/*lib/*.
project_plugin_dirs: plugins/*
global_config_dir: /home/user/kerl/26.2.4/.cache/rebar3/.config/rebar3
global_config: /home/user/kerl/26.2.4/.cache/rebar3/.config/rebar3/rebar.config
template_dir: /home/user/kerl/26.2.4/.cache/rebar3/.config/rebar3/templates

Printing a single directory

If you want just a single value (like template_dir) or multiple specific values, add the desired value keys to the end of the rebar3 call

$ rebar3 dirs template_dir
/home/user/kerl/26.2.4/.cache/rebar3/.config/rebar3/templates

$ rebar3 dirs template_dir checkouts_dir
/home/user/kerl/26.2.4/.cache/rebar3/.config/rebar3/templates
/home/user/code/myapp/_checkouts/

About

Copyright 2024 Jesse Gumm

Licensed under Apache 2.0

About

Rebar3 Plugin to list important directories for rebar3

License:Apache License 2.0


Languages

Language:Erlang 100.0%