Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 code

Setup:
- 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