use Mix.Task
alias Pleroma.User
- @shortdoc "Generate password reset link for user"
+ @doc """
+ Generate password reset link for user
+
+ Usage: ``mix generate_password_reset <nickname>``
+
+ Example: ``mix generate_password_reset lain``
+ """
def run([nickname]) do
Mix.Task.run("app.start")
use Mix.Task
alias Pleroma.User
- @shortdoc "Reactivate a user"
+ @doc """
+ Reactivate a user
+
+ Usage: ``mix reactivate_user <nickname>``
+
+ Example: ``mix reactivate_user lain``
+ """
def run([nickname]) do
Mix.Task.run("app.start")
alias Pleroma.Web.ActivityPub.Relay
@shortdoc "Follows a remote relay"
+ @doc """
+ Follows a remote relay
+
+ Usage: ``mix relay_follow <relay_url>``
+
+ Example: ``mix relay_follow https://example.org/relay``
+ """
def run([target]) do
Mix.Task.run("app.start")
require Logger
alias Pleroma.Web.ActivityPub.Relay
- @shortdoc "Follows a remote relay"
+ @doc """
+ Unfollows a remote relay
+
+ Usage: ``mix relay_follow <relay_url>``
+
+ Example: ``mix relay_follow https://example.org/relay``
+ """
def run([target]) do
Mix.Task.run("app.start")
alias Pleroma.{User, Repo}
require Logger
- @shortdoc "Unsubscribe all users from a target and then deactivate them"
+ @doc """
+ Deactivate and Unsubscribe local users from a user
+
+ Usage: ``mix unsubscribe_user <nickname>``
+
+ Example: ``mix unsubscribe_user lain``
+ """
+ def run([nickname]) do
def run([nickname]) do
Mix.Task.run("app.start")