No description
Find a file
2025-06-27 04:34:00 +01:00
src add CLI flags, update README accordingly, add mode 'expand' 2025-06-27 04:24:57 -04:00
.gitignore add sample, minimum viable product, add README.md 2025-06-21 09:27:51 -04:00
Cargo.lock add CLI flags, update README accordingly, add mode 'expand' 2025-06-27 04:24:57 -04:00
Cargo.toml add CLI flags, update README accordingly, add mode 'expand' 2025-06-27 04:24:57 -04:00
flake.lock add CLI flags, update README accordingly, add mode 'expand' 2025-06-27 04:24:57 -04:00
flake.nix add CLI flags, update README accordingly, add mode 'expand' 2025-06-27 04:24:57 -04:00
games.csv api requests made, repl form 2025-06-21 06:04:44 -04:00
package.nix add CLI flags, update README accordingly, add mode 'expand' 2025-06-27 04:24:57 -04:00
README.md add CLI flags, update README accordingly, add mode 'expand' 2025-06-27 04:24:57 -04:00
rust_elaborator.exe add executable 2025-06-27 04:34:00 +01:00
sample_in.csv add sample, minimum viable product, add README.md 2025-06-21 09:27:51 -04:00
sample_out.csv add sample, minimum viable product, add README.md 2025-06-21 09:27:51 -04:00

Rust Elaborator

This program serves to take a list of boardgames as a csv and return a csv with more data about them.

Building

Clone the git repo locally

git clone https://git.mtgmonkey.net/Andromeda/rust-elaborator.git cd rust-elaborator

Run the sample

cat sample_in.csv | nix run

the output out.csv should match the provided sample_out.csv

Usage

The program reads a csv from stdin and outputs it to out.csv. The following command reads the contents of in.csv into the program and runs it.

cat in.csv | rust_elaborator

in.csv must be formatted as follows...

title
Monopoly
Abomination
7 Wonders
Uno

...in excel or as follows...

title,
Monopoly,
Abomination,
7 Wonders,
Uno,

...as plaintext

where title can be anything. Capitalization does not matter. Additional columns will not be present in out.csv.

If you have an existing out.csv, you can add new rows and avoid recalling the rows that are already filled in with the flag --mode expand.

cat out.csv | nix run . -- --mode expand

This will only check rows that have a) a blank second column or b) NOT_FOUND in the second column.