Introduced in: 1.0.0
Authors: Carlos Eduardo de Paula.
Rebar3 plugin for cleaning compiled diameter files.
This module provides cleanup functionality for files generated by the diameter compiler plugin. It removes generated .erl and .hrl files, but preserves the original .dia source files.
The cleaner automatically discovers which files were generated based on the .dia files present in the project and removes only those files that would be regenerated by compilation.
rebar3 diameter clean
| do/1 | Execute the diameter cleanup process. |
| format_error/1 | Format error messages for user display. |
| init/1 | Initialize the diameter clean provider. |
do(State :: rebar_state:t()) -> {ok, rebar_state:t()}
State: The current rebar3 state
returns: {ok, State} after cleanup is complete
Execute the diameter cleanup process.
This function performs the cleanup work by:format_error(Reason :: any()) -> iolist()
Reason: The error term to format
returns: Formatted error message as iolist
Format error messages for user display.
init(State :: rebar_state:t()) -> {ok, rebar_state:t()}
State: The current rebar3 state
returns: {ok, UpdatedState} with the provider registered
Initialize the diameter clean provider.
Sets up the rebar3 provider for cleaning diameter-generated files. This provider removes .erl and .hrl files that were generated from .dia sources during compilation.Generated by EDoc