add user show task
authorsadposter <hannah+pleroma@coffee-and-dreams.uk>
Mon, 22 Jul 2019 00:17:59 +0000 (01:17 +0100)
committersadposter <hannah+pleroma@coffee-and-dreams.uk>
Mon, 22 Jul 2019 00:17:59 +0000 (01:17 +0100)
lib/mix/tasks/pleroma/user.ex

index 55f89e1d0a630b53cbcd994ccfcbd32a3180ebbc..b77e4291d9f50f8823f16709df605d43085ea001 100644 (file)
@@ -423,6 +423,13 @@ defmodule Mix.Tasks.Pleroma.User do
     end
   end
 
+  def run(["show", nickname]) do
+    start_pleroma()
+    nickname
+    |> User.get_cached_by_nickname()
+    |> IO.inspect
+  end
+
   def run(["send_confirmation", nickname]) do
     start_pleroma()
     with %User{} = user <- User.get_cached_by_nickname(nickname) do