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 4d427cfd8f40543c5380697bb80b374912d865d3..15586dc307beaa21cb6072d756f415dc5332f1a0 100644
(file)
--- a/
lib/mix/tasks/make_moderator.ex
+++ b/
lib/mix/tasks/make_moderator.ex
@@
-1,11
+1,18
@@
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
def run([nickname | rest]) do
-
ensure_started(Repo, []
)
+
Application.ensure_all_started(:pleroma
)
moderator =
case rest do
moderator =
case rest do