aoc-generator

command module
v0.0.0-...-7543558 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 6 Imported by: 0

README

aoc-scaffold

A simple CLI that lets you create scaffolds for advent of code projects and single days.

Installation

If you have go installed on your system you could clone the GitHub repository, adjust the path in the install.sh and then execute the install.sh. Other ways will be available shortly.

Usage

aoc generate

To create a new aoc project use the aoc generate command and pass the following arguments:

  • language: The prgramming language you want to use (currently go and java are supported)
  • year: The year your are implementing the tasks for
  • githubUser: This is used for the module in the generated go.mod file or the groupId in the pom.xml

For example aoc generate -language=go -year=2023 -githubUser=gossie

This command will create a new directory, that contains your project.

aoc create

To create the scaffold for a new day run the aoc create command inside the directory, that was create by the aoc generate command, and pass the following arguments:

  • day: The day you want to implement

For example aoc create -day=1

This command will create a new subfolder for the day, that contains a source file with functions for part one and part two, a test file with unit tests for part one and part two and two text files for the puzzle input and the example input. Also, this command will alter the main source file and insert calls to the funtions for part one and two and print the time that they took to run.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
day
templates

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL