Advent of Code Rust utilities
About
This crate provides a very minimal set of utils to get started with writing Advent of Code solutions.
AocCommand
Description
This is a CLI command builder that provides an input source (either a file or STDIN). The suggested workflow is to create a Rust project with one binary per AOC solution.
Here is an example help printout generated from a program generated by AocCommand
:
Example description
USAGE:
prog [FILE]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
<FILE> Input file (defaults to STDIN if not provided)
Usage
Collect all lines from input:
use BufRead;
use AocCommand;
let input = new.parse_args.unwrap;
let lines: = input.lines.map.collect;
for line in lines