Use aocd to get daily input

see https://pypi.org/project/advent-of-code-data/
This commit is contained in:
kageru 2021-12-01 09:54:28 +01:00
parent a044e4cf1b
commit 85370a3b3b

View File

@ -1,14 +1,7 @@
#!/bin/sh
today=$(date +%d)
# this assumes that your puzzle input is already in your clipboard
if [ -n "$WAYLAND_DISPLAY" ]; then
wl-paste > inputs/day$today
else
xsel -b > inputs/day$today
fi
# add trailing newline if necessary
sed -i -e '$a\' inputs/day$today
aocd > inputs/day$today
echo '#![feature(test)]
extern crate test;