From 07b2552249d592a75d8fe47cf8c8e094a5440912 Mon Sep 17 00:00:00 2001 From: Sloane Perrault Date: Wed, 21 Sep 2022 09:19:53 -0400 Subject: [PATCH] docs: add detail about options for fetch_input --- 2021/lib/mix/tasks/advent_of_code.fetch_input.ex | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/2021/lib/mix/tasks/advent_of_code.fetch_input.ex b/2021/lib/mix/tasks/advent_of_code.fetch_input.ex index 33e0f2a..d80e2d7 100644 --- a/2021/lib/mix/tasks/advent_of_code.fetch_input.ex +++ b/2021/lib/mix/tasks/advent_of_code.fetch_input.ex @@ -9,10 +9,19 @@ defmodule Mix.Tasks.AdventOfCode.FetchInput do @moduledoc """ #{@shortdoc}. + Expects `:event` and `:session` keys to be configured for the `:advent_of_code` application. + These values can be overridden. + ## Examples # Fetch day 1's inputs $ mix advent_of_code.fetch_input 1 + + # Fetch Day 1 of 2020 + $ mix advent_of_code.fetch_input --event 2020 1 + + # Pass your session cookie value + $ mix advent_of_code.fetch_input 13 --session foobar """ @finch Mix.AdventOfCode.FetchInput.Finch