Skip to content
/ fetch Public

Advent of Code puzzle and input fetcher and opener

Notifications You must be signed in to change notification settings

dbut2/fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Fetch

Download and open Advent of Code puzzle and inputs files automatically

Installation

  1. Install and follow installation steps for scarvalhojr/aoc-cli
go install github.com/dbut2/fetch@latest

Usage

From your aoc directory root, run fetch

fetch --help

Usage of fetch:
  -day int
        day to download puzzle for (default 25)
  -files string
        comma seperated list of files to open automatically (default "puzzle.md")
  -ide string
        ide command to open files, must support opening files like "$ {IDE} example" (default "goland")
  -template string
        template folder (default "template")
  -year int
        year to download puzzle for (default 2022)

Set up your arguments, eg

fetch --files=puzzle.md --ide=goland --year=2020 --day=01 --template=template

The following env vars are also supported to override default values

  • FETCH_TEMPLATE
  • FETCH_FILES
  • FETCH_IDE

About

Advent of Code puzzle and input fetcher and opener

Topics

Resources

Stars

Watchers

Forks

Languages