2019-11-21 15:51:13 +01:00
|
|
|
defmodule Mix.Tasks.Mobilizon.Users do
|
|
|
|
@moduledoc """
|
|
|
|
Tasks to manage users
|
|
|
|
"""
|
2020-01-28 19:18:33 +01:00
|
|
|
|
2019-11-21 15:51:13 +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-11-21 15:51:13 +01:00
|
|
|
@shortdoc "Manages Mobilizon users"
|
|
|
|
|
|
|
|
@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.users."])
|
|
|
|
else
|
|
|
|
show_subtasks_for_module(__MODULE__)
|
|
|
|
end
|
2019-11-21 15:51:13 +01:00
|
|
|
end
|
|
|
|
end
|