Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lxze/aoc-template-elixir

aoc template repo in elixir
https://github.com/lxze/aoc-template-elixir

aoc aoc-template elixir

Last synced: about 1 month ago
JSON representation

aoc template repo in elixir

Awesome Lists containing this project

README

        

# AOC Elixir Template

## Installation
Just cloning this repo and start working on your own solution

## Command
- Generate template
```sh
mix gen
```
- Generate template and downloading the input from AoC (require .env file and aoc cookie session)
```sh
mix gen -dl
# or mix gen --download
```

- Download input from AoC
```sh
mix download
```

- Run solution on test input
```sh
mix aoc.test
# or mix aoc.test lib/solutions// which is called by .vscode/tasks.json
```

- Run solution on actual input
```sh
mix aoc.run
# or mix aoc.run lib/solutions// which is called by .vscode/tasks.json
```

## Config with VS Code
Edit your keyboard shortcut to invoke predefined tasks by adding these config into your `keybindings.json`
```json
{
"key": "cmd+r", // feel free to change
"command": "workbench.action.tasks.runTask",
"args": "run test elixir", // must be the same inside `.vscode/tasks.json`
"when": "editorLangId == elixir"
},
{
"key": "cmd+shift+r",
"command": "workbench.action.tasks.runTask",
"args": "run full elixir",
"when": "editorLangId == elixir"
}
```