hank_context (rebar3_hank v2.0.0)

View Source

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

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.

Types

apps_dirs()

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

t()

-opaque t()

Functions

app_dir/2

-spec app_dir(atom(), t()) -> undefined | file:filename().

Return the root folder for an app.

from_rebar_state(State)

-spec from_rebar_state(rebar_state:t()) -> t().

Build a context from a rebar3 state.

new(AppDirs, ProjectApps)

-spec new(apps_dirs(), [atom()]) -> t().

Build a context from scratch.

project_apps/1

-spec project_apps(t()) -> [atom()].

OTP applications included in the project.