@aoc-ts/cli
v1.6.0
Published
Generate a workspace for Advent of Code puzzle
Downloads
93
Readme
Advent of Code - CLI
This package, @aoc-ts/cli, provides a command-line interface (CLI) to scaffold and manage your Advent of Code puzzles.
Commands
aoc-cli init
The init command allows you to create a brand new monorepo workspace for your Advent of Code puzzles.
Usage:
pnpm dlx @aoc-ts/cli initThis command will:
- Create a new directory named
aoc-ts-puzzles. - Scaffold the entire monorepo structure, including all the configuration packages.
- Prompt you to create your first puzzle.
This is the perfect command to get started if you don't want to clone the repository.
aoc-cli add
The add command is used to add a new puzzle to your existing workspace.
Usage:
aoc-cli addThis command will prompt you for the year and day of the puzzle. It will then automatically:
- Create a new package for the puzzle in the
puzzles/directory. - Download the puzzle input.
- Download the puzzle instructions and create a
README.md. - Install all necessary dependencies.
For convenience, you can also use the pnpm gen command from the root of the monorepo, which is an alias for pnpm aoc-cli add.
aoc-cli update
The update command allows you to update the README.md of an existing puzzle with the latest instructions from the Advent of Code website. This is particularly useful when the second part of a puzzle is released.
Usage:
aoc-cli updateThis command will prompt you for the year and day of the puzzle you want to update.
