Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jackbisceglia/aoc-helper
cli to template advent of code dev environment
https://github.com/jackbisceglia/aoc-helper
Last synced: about 1 month ago
JSON representation
cli to template advent of code dev environment
- Host: GitHub
- URL: https://github.com/jackbisceglia/aoc-helper
- Owner: jackbisceglia
- Created: 2023-12-01T01:00:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-06T06:03:37.000Z (about 1 year ago)
- Last Synced: 2024-10-30T01:02:45.999Z (3 months ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code Helper
This is a cli to scaffold a day's advent of code file and directory structure. When run, it will fetch your puzzle input for you, and scaffold the starter code needed to solve the problem.
Supported Languages: `python`, `golang`, `javascript(bun)`
Sample usage:
- Run `go run . -day 2 -lang go`
- The following directory structure will be scaffolded:
- `/day2`
- `puzzle.txt` -> your puzzle input
- `sample.txt` -> empty .txt file for the sample puzzle
- `solution.go` -> starter go codeSetup:
- create a .env file in this project
- add `session=""`
- if you want to specify a different directory for your solutions:
- run in terminal `export ABS_PATH=""`
- use the cli and it will scaffold your code :)Flags
- -lang -> accepts `python`, `golang`, `javascript`
- -day -> accepts any day number (only enter days that are available please)
- -overwrite -> include if you would like to overwrite the existing directory if one exists**note**: if you improperly configure your session .env variable (ie. the `puzzle.txt` comes back with text telling you to sign in), be sure to delete the file(s) created in `/puzzle-cache` so that subsequent runs won't use the incorrect cached result