View Source hank_context (rebar3_hank v1.4.1)

rebar3 contextual data turned into a type that we can also manually build, if needed

Link to this section Summary

Functions

Return the root folder for an app.
Build a context from a rebar3 state.
Build a context from scratch.
OTP applications included in the project.

Link to this section Types

-type apps_dirs() :: #{atom() => file:filename()}.
-opaque t()

Link to this section Functions

-spec app_dir(atom(), t()) -> undefined | file:filename().
Return the root folder for an app.
-spec from_rebar_state(rebar_state:t()) -> t().
Build a context from a rebar3 state.
Link to this function

new(AppDirs, ProjectApps)

View Source
-spec new(apps_dirs(), [atom()]) -> t().
Build a context from scratch.
-spec project_apps(t()) -> [atom()].
OTP applications included in the project.