Document mix tasks

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-07-13 01:02:18 +02:00
commit e1814bb322
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
3 changed files with 26 additions and 2 deletions

View file

@ -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, [])