Packages

Command line project generator with tux dependency. Provides a `mix tux.new` task to bootstrap a new command line Elixir project with tux dependency and a default skeleton.

Current section

Files

Jump to
tux_new priv templates cli ping.ex
Raw

priv/templates/cli/ping.ex

defmodule <%= @main_module %>.Cli.Ping do
use Tux.Command
@impl true
def about(), do: "Show pong"
@impl true
def main(_env, _args) do
{:ok, "pong"}
end
@impl true
def help() do
Help.new()
|> Help.about(about())
|> Help.ok()
end
end