diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-07-13 01:02:18 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-11-10 13:09:37 +0100 |
commit | e1814bb322dda732143fdb0cb60dbce82fe433da (patch) | |
tree | f4af3cfab19d9cd570d71d094592666da37e5e2f /lib/mix/tasks/set_locked.ex | |
parent | 8221c56c4893c3b7f8ad5e529a78ab0124cca172 (diff) | |
download | pleroma-e1814bb322dda732143fdb0cb60dbce82fe433da.tar.gz |
Document mix tasks
Diffstat (limited to 'lib/mix/tasks/set_locked.ex')
-rw-r--r-- | lib/mix/tasks/set_locked.ex | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/mix/tasks/set_locked.ex b/lib/mix/tasks/set_locked.ex index 2b3b18b09..a154595ca 100644 --- a/lib/mix/tasks/set_locked.ex +++ b/lib/mix/tasks/set_locked.ex @@ -1,9 +1,18 @@ defmodule Mix.Tasks.SetLocked do + @moduledoc """ + Lock a local user + + The local user will then have to manually accept/reject followers. This can also be done by the user into their settings. + + Usage: ``mix set_locked <username>`` + + Example: ``mix set_locked lain`` + """ + use Mix.Task import Mix.Ecto alias Pleroma.{Repo, User} - @shortdoc "Set locked status" def run([nickname | rest]) do ensure_started(Repo, []) |