Merge branch 'feature/csp-plug' into 'develop'
[akkoma] / lib / mix / tasks / make_moderator.ex
index a454a958e004e5450ab706e21a8cb7a0a5a84137..15586dc307beaa21cb6072d756f415dc5332f1a0 100644 (file)
@@ -1,9 +1,16 @@
 defmodule Mix.Tasks.SetModerator do
+  @moduledoc """
+  Set moderator to a local user
+
+  Usage: ``mix set_moderator <nickname>``
+
+  Example: ``mix set_moderator lain``
+  """
+
   use Mix.Task
   import Mix.Ecto
   alias Pleroma.{Repo, User}
 
-  @shortdoc "Set moderator status"
   def run([nickname | rest]) do
     Application.ensure_all_started(:pleroma)