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/1]).
-file("/home/bwireman/src/go-over/src/go_over/util/constants.gleam", 14).
-spec go_over_path(boolean()) -> binary().
go_over_path(Global) ->
_pipe@2 = case Global of
true ->
_pipe = directories:home_dir(),
gxyz@cli:hard_fail_with_msg(
_pipe,
<<"could not get home directory"/utf8>>
);
false ->
_pipe@1 = simplifile:current_directory(),
gxyz@cli:hard_fail_with_msg(
_pipe@1,
<<"could not get current directory"/utf8>>
)
end,
filepath:join(_pipe@2, <<".go-over"/utf8>>).