2019-12-18 15:57:15 +01:00
|
|
|
defmodule Mix.Tasks.Mobilizon.Actors do
|
|
|
|
@moduledoc """
|
|
|
|
Tasks to manage actors
|
|
|
|
"""
|
2020-01-28 19:18:33 +01:00
|
|
|
|
2019-12-18 15:57:15 +01:00
|
|
|
use Mix.Task
|
|
|
|
|
2020-01-28 19:18:33 +01:00
|
|
|
alias Mix.Tasks
|
2020-10-30 15:16:01 +01:00
|
|
|
import Mix.Tasks.Mobilizon.Common
|
2020-01-28 19:18:33 +01:00
|
|
|
|
2019-12-18 15:57:15 +01:00
|
|
|
@shortdoc "Manages Mobilizon actors"
|
|
|
|
|
|
|
|
@impl Mix.Task
|
|
|
|
def run(_) do
|
2020-10-30 15:16:01 +01:00
|
|
|
shell_info("\nAvailable tasks:")
|
|
|
|
|
|
|
|
if mix_shell?() do
|
|
|
|
Tasks.Help.run(["--search", "mobilizon.actors."])
|
|
|
|
else
|
|
|
|
show_subtasks_for_module(__MODULE__)
|
|
|
|
end
|
2019-12-18 15:57:15 +01:00
|
|
|
end
|
|
|
|
end
|