rebar3_thrift_clean (rebar3_thrift v0.7.0)

View Source

The clean provider of the thrift namespace: deletes every generator-owned file (.erl/.hrl carrying the Autogenerated by Thrift Generator banner) from the configured out dir.

Not meant for the command line: a default-namespace provider wins rebar3's resolution, so rebar3 thrift clean is answered by the main thrift provider. This one exists to be hooked into the project clean — the consumer's rebar.config:

{provider_hooks, [{post, [{clean, {thrift, clean}}]}]}

Summary

Functions

do(State)

-spec do(rebar_state:t()) -> {ok, rebar_state:t()} | {error, {rebar3_thrift_clean, term()}}.

format_error(Reason)

-spec format_error(term()) -> string().

init(State)

-spec init(rebar_state:t()) -> {ok, rebar_state:t()}.