Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbut2/fetch
Advent of Code puzzle and input fetcher and opener
https://github.com/dbut2/fetch
advent-of-code aoc go
Last synced: 13 days ago
JSON representation
Advent of Code puzzle and input fetcher and opener
- Host: GitHub
- URL: https://github.com/dbut2/fetch
- Owner: dbut2
- Created: 2022-12-13T13:04:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-14T05:55:41.000Z (about 2 years ago)
- Last Synced: 2024-06-20T00:38:47.721Z (7 months ago)
- Topics: advent-of-code, aoc, go
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Fetch
Download and open Advent of Code puzzle and inputs files automatically
### Installation
1. Install and follow installation steps for [scarvalhojr/aoc-cli](https://github.com/scarvalhojr/aoc-cli)
```shell
go install github.com/dbut2/fetch@latest
```### Usage
From your aoc directory root, run fetch
```shell
fetch --helpUsage 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
```shell
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`