Move helper functions of emoji manager task down in the file
authorEkaterina Vaartis <vaartis@cock.li>
Thu, 18 Apr 2019 12:47:49 +0000 (15:47 +0300)
committerEkaterina Vaartis <vaartis@cock.li>
Sat, 20 Apr 2019 08:17:17 +0000 (11:17 +0300)
lib/mix/tasks/pleroma/emoji.ex

index 29c5d0c93c42ce54ebe405b521c79233d15436d7..71d08411f7cf45ba8731139d98a0c1f56f8c3216 100644 (file)
@@ -11,22 +11,6 @@ defmodule Mix.Tasks.Pleroma.Emoji do
 
   @default_manifest "https://git.pleroma.social/vaartis/emoji-index/raw/master/index.json"
 
-  defp fetch_manifest(from) do
-    Tesla.get!(from).body |> Poison.decode!()
-  end
-
-  defp parse_global_opts(args) do
-    OptionParser.parse(
-      args,
-      strict: [
-        manifest: :string
-      ],
-      aliases: [
-        m: :manifest
-      ]
-    )
-  end
-
   def run(["ls-packs" | args]) do
     Application.ensure_all_started(:hackney)
 
@@ -146,4 +130,20 @@ defmodule Mix.Tasks.Pleroma.Emoji do
       end
     end
   end
+
+  defp fetch_manifest(from) do
+    Tesla.get!(from).body |> Poison.decode!()
+  end
+
+  defp parse_global_opts(args) do
+    OptionParser.parse(
+      args,
+      strict: [
+        manifest: :string
+      ],
+      aliases: [
+        m: :manifest
+      ]
+    )
+  end
 end