https://github.com/tobias-walle/advent-of-code-cli Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Resources + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} tobias-walle / advent-of-code-cli Public * Notifications * Fork 0 * Star 27 A cli tool to automatically download and upload advent of code problems. 27 stars 0 forks Activity Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights tobias-walle/advent-of-code-cli This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/t] Use Git or checkout with SVN using the web URL. [gh repo clone tobias] Work fast with our official CLI. Learn more about the CLI. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @tobias-walle tobias-walle add user-agent ... 90c8658 Dec 2, 2023 add user-agent 90c8658 Git stats * 14 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time src add user-agent December 2, 2023 18:43 .gitignore copy cli tool from my advent of code 2022 repo December 1, 2023 18:06 Cargo.lock replace html parser "tl" with "scraper" because "tl" had problems wit... December 2, 2023 12:29 Cargo.toml replace html parser "tl" with "scraper" because "tl" had problems wit... December 2, 2023 12:29 README.md fix view-source link in readme December 2, 2023 15:53 View code Advent of Code CLI Example Installation Documentation README.md Advent of Code CLI CLI client for advent of code. The purpose of this tool is so you don't have to leave your editor while participating (if you are lazy like me) or if you want to save seconds if you are trying to be competitive. Please do not use this tool for automated AI assisted submissions. This is actively discouraged by the AoC team and against the spirit of AoC. Please also be careful to not send too many requests. There is a note about this in the html source code (view-source:https:// adventofcode.com/): Please be careful with automated requests; I'm not a massive company, and I can only take so much traffic. Please be considerate so that everyone gets to play. ... - Eric Wastl Also consider donating to the makers of AoC. Example # You can get the session from the cookies of https://adventofcode.com # It has a relatively long lifetime so you can set it in your .bashrc and co export AOC_SESSION="" mkdir ./template # Feel free to add your code boilerplate in this folder aoc new -y 2020 -d 1 # This will create the "day_1" folder and downloads the problem into it # After you solved the problem cd day_1 aoc submit -l 1 # Download the second problem aoc download # Submit it aoc submit -l 2 Installation Install it with cargo: cargo install --git https://github.com/tobias-walle/advent-of-code-cli Documentation aoc --help: Tool to automate downloading and submitting advent of code problems. It requires the AOC_SESSION environment variable to be defined. You can get the session value from the cookies on the advent of code page. You also need to define a `./template` folder which gets copied then creating a problem folder. Usage: aoc [OPTIONS] Commands: new Creates a new folder and downloads the problem into it download Download the problem statement, input and example submit Submit your result help Print this message or the help of the given subcommand(s) Options: -c, --config The path of the configuration file. If defined you don't need to define the year and day in the commands. Example: ```toml year: 2020 day: 1 ``` It can contain the fields "year" and "day" [default: ./aoc.toml] -h, --help Print help (see a summary with '-h') About A cli tool to automatically download and upload advent of code problems. Resources Readme Activity Stars 27 stars Watchers 1 watching Forks 0 forks Report repository Releases No releases published Packages 0 No packages published Languages * Rust 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact You can't perform that action at this time.