feat(cli): allow the mobilizon.users.delete command to delete multiple users by email domain or ip

Also allow to delete groups the user's actors are admins of

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-21 17:51:22 +02:00
parent d29f1e1ee2
commit bc50ab66f3
3 changed files with 190 additions and 16 deletions

View File

@@ -75,6 +75,10 @@ defmodule Mix.Tasks.Mobilizon.Common do
IO.puts(:stderr, message)
end
shutdown(options)
end
def shutdown(options \\ []) do
if @env != :test do
exit({:shutdown, Keyword.get(options, :error_code, 1)})
end