safe_cmd_util (rebar_safe v1.0.1)

View Source

Summary

Functions

Returns the path to the project's SAFE config file.

Build the SAFE config from rebar3 state, with debug output.

Returns a config_path spec for an existing config file, with debug output.

Functions

config_file_path(Dir)

-spec config_file_path(string()) -> string().

Returns the path to the project's SAFE config file.

get_config(State, Debug)

-spec get_config(safe_rebar_interface:state(), boolean()) -> {ok, map()} | {error, term()}.

Build the SAFE config from rebar3 state, with debug output.

use_existing_config(ConfigFile, Debug)

-spec use_existing_config(string(), boolean()) -> {ok, {config_path, string()}}.

Returns a config_path spec for an existing config file, with debug output.