projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/csp-plug' into 'develop'
[akkoma]
/
lib
/
mix
/
tasks
/
make_moderator.ex
diff --git
a/lib/mix/tasks/make_moderator.ex
b/lib/mix/tasks/make_moderator.ex
index a454a958e004e5450ab706e21a8cb7a0a5a84137..15586dc307beaa21cb6072d756f415dc5332f1a0 100644
(file)
--- a/
lib/mix/tasks/make_moderator.ex
+++ b/
lib/mix/tasks/make_moderator.ex
@@
-1,9
+1,16
@@
defmodule Mix.Tasks.SetModerator do
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}
use Mix.Task
import Mix.Ecto
alias Pleroma.{Repo, User}
- @shortdoc "Set moderator status"
def run([nickname | rest]) do
Application.ensure_all_started(:pleroma)
def run([nickname | rest]) do
Application.ensure_all_started(:pleroma)