1
0
Fork 0

docs: add detail about options for fetch_input

This commit is contained in:
Sloane Perrault 2022-09-21 09:19:53 -04:00
parent df609c1bae
commit 07b2552249

View file

@ -9,10 +9,19 @@ defmodule Mix.Tasks.AdventOfCode.FetchInput do
@moduledoc """ @moduledoc """
#{@shortdoc}. #{@shortdoc}.
Expects `:event` and `:session` keys to be configured for the `:advent_of_code` application.
These values can be overridden.
## Examples ## Examples
# Fetch day 1's inputs # Fetch day 1's inputs
$ mix advent_of_code.fetch_input 1 $ 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 @finch Mix.AdventOfCode.FetchInput.Finch