defmodule Mix.Tasks.GetInput do def run(args) do Application.ensure_all_started(:req) [year, day] = args write_file = &File.write("./input/#{year}_#{day}.txt", &1) AoC.fetch_input!(year, day) |> write_file.() end end