Packages

An elixir feature toggle | flag | flipper library to make Blackbeard envy

Current section

Files

Jump to
shapt lib mix tasks shapt.ex
Raw

lib/mix/tasks/shapt.ex

defmodule Mix.Tasks.Shapt do
use Mix.Task
@shortdoc "Shows Shapt tasks help info"
@moduledoc """
Prints help info for Shapt tasks. Doesn't accept parameters.
"""
def run(args) do
case args do
[] ->
help()
_any ->
Mix.raise("Invalid arguments, expected: mix shapt")
end
end
defp help do
Mix.shell().info("Tasks to make it easier to use Shapt.")
Mix.shell().info("Available tasks:\n")
Mix.Tasks.Help.run(["--search", "shapt."])
end
end