init
This commit is contained in:
18
lib/exproj.ex
Normal file
18
lib/exproj.ex
Normal file
@@ -0,0 +1,18 @@
|
||||
defmodule Exproj do
|
||||
@moduledoc """
|
||||
Documentation for `Exproj`.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Hello world.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> Exproj.hello()
|
||||
:world
|
||||
|
||||
"""
|
||||
def hello do
|
||||
:world
|
||||
end
|
||||
end
|
9
lib/mix/tasks/hello.ex
Normal file
9
lib/mix/tasks/hello.ex
Normal file
@@ -0,0 +1,9 @@
|
||||
defmodule Mix.Tasks.Hello do
|
||||
@moduledoc "Prints a greeting: `mix help hello`"
|
||||
use Mix.Task
|
||||
|
||||
@shortdoc "Prints 'hello' to the console"
|
||||
def run(_args) do
|
||||
IO.puts("hello")
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user