Current section
Files
Jump to
Current section
Files
src/go_over@util@constants.erl
-module(go_over@util@constants).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([go_over_path/0]).
-spec go_over_path() -> binary().
go_over_path() ->
_assert_subject = begin
_pipe = simplifile:current_directory(),
go_over@util@util:hard_fail(
_pipe,
<<"could not get current path"/utf8>>
)
end,
{some, Curr} = case _assert_subject of
{some, _} -> _assert_subject;
_assert_fail ->
erlang:error(#{gleam_error => let_assert,
message => <<"Assertion pattern match failed"/utf8>>,
value => _assert_fail,
module => <<"go_over/util/constants"/utf8>>,
function => <<"go_over_path"/utf8>>,
line => 15})
end,
filepath:join(Curr, <<".go-over"/utf8>>).