mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-30 20:06:07 +00:00
c9457fe0d3
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
23 lines
416 B
Elixir
23 lines
416 B
Elixir
defmodule Mix.Tasks.Mobilizon.Media do
|
|
@moduledoc """
|
|
Tasks to manage media
|
|
"""
|
|
|
|
use Mix.Task
|
|
|
|
alias Mix.Tasks
|
|
import Mix.Tasks.Mobilizon.Common
|
|
|
|
@shortdoc "Manages Mobilizon media"
|
|
|
|
@impl Mix.Task
|
|
def run(_) do
|
|
shell_info("\nAvailable tasks:")
|
|
|
|
if mix_shell?() do
|
|
Tasks.Help.run(["--search", "mobilizon.media."])
|
|
else
|
|
show_subtasks_for_module(__MODULE__)
|
|
end
|
|
end
|
|
end
|