diff options
author | Ekaterina Vaartis <vaartis@cock.li> | 2019-04-18 15:47:49 +0300 |
---|---|---|
committer | Ekaterina Vaartis <vaartis@cock.li> | 2019-04-20 11:17:17 +0300 |
commit | c5b7286b5f3fd2a3eb91eea74bebb684575682bd (patch) | |
tree | 01741aef72491ce4741a3d8b87843538f4d548f5 /lib | |
parent | 06db3ee1a8a443316196e6d8f55f4d5fc0cac694 (diff) | |
download | pleroma-c5b7286b5f3fd2a3eb91eea74bebb684575682bd.tar.gz |
Move helper functions of emoji manager task down in the file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mix/tasks/pleroma/emoji.ex | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/mix/tasks/pleroma/emoji.ex b/lib/mix/tasks/pleroma/emoji.ex index 29c5d0c93..71d08411f 100644 --- a/lib/mix/tasks/pleroma/emoji.ex +++ b/lib/mix/tasks/pleroma/emoji.ex @@ -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 |