Current section
Files
Jump to
Current section
Files
lib/elmer.ex
defmodule Elmer do
@moduledoc """
Elmer is a tool for generating common elm-lang structures. This module is for abstracting out common functions that many of the modules use.
"""
def prompt_path do
if is_nil Application.get_env(:elmer, :elmpath) do
Mix.shell.info "Set :elmer, :elmpath in your app config to suppress this prompt."
Mix.shell.prompt("What is the path to your elm app?\n|>")
|> String.strip()
|> Path.expand()
else
Application.get_env(:elmer, :elmpath)
end
end
end