Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma into develop
[akkoma] / lib / mix / tasks / pleroma / user.ex
index 55f89e1d0a630b53cbcd994ccfcbd32a3180ebbc..3f290cf4224969452804dcd98742b508761a1bf6 100644 (file)
@@ -31,8 +31,8 @@ defmodule Mix.Tasks.Pleroma.User do
       mix pleroma.user invite [OPTION...]
 
     Options:
-    - `--expires_at DATE` - last day on which token is active (e.g. "2019-04-05")
-    - `--max_use NUMBER` - maximum numbers of token uses
+    - `--expires-at DATE` - last day on which token is active (e.g. "2019-04-05")
+    - `--max-use NUMBER` - maximum numbers of token uses
 
   ## List generated invites
 
@@ -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