forked from YokaiRick/akkoma
add mix task for instance deletion
This commit is contained in:
parent
fb8081e1a3
commit
67beb1404b
1 changed files with 12 additions and 0 deletions
12
lib/mix/tasks/pleroma/moderation.ex
Normal file
12
lib/mix/tasks/pleroma/moderation.ex
Normal file
|
@ -0,0 +1,12 @@
|
|||
defmodule Mix.Tasks.Pleroma.Moderation do
|
||||
use Mix.Task
|
||||
import Mix.Pleroma
|
||||
|
||||
@shortdoc "Does moderation"
|
||||
|
||||
def run(["rm-instance", domain | _rest]) do
|
||||
start_pleroma()
|
||||
Pleroma.Instances.Instance.perform(:delete_instance, domain)
|
||||
|> IO.inspect()
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue