Add usaco sync; track saved test outputs
Test and publish the site / test (push) Successful in 4m29s
Test and publish the site / publish (push) Successful in 1m25s

The website commits too, so `usaco sync` pulls its edits before pushing.
tests/*.out were swallowed by the *.out rule; they are expected outputs
the site shows, so re-include them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 21:51:34 +01:00
co-authored by Claude Opus 5.5
parent 6d956f1c76
commit 1c647072c5
27 changed files with 64 additions and 6 deletions
+3 -1
View File
@@ -27,6 +27,7 @@
# usaco stats Show solve counts and recent activity
# usaco path <name> Print the problem's directory (used by the ucd shell helper)
# usaco clean Delete compiled binaries and backups from all problem dirs
# usaco sync git pull --rebase (picks up edits made on the website), then push
# usaco template <name> Re-copy template.cpp into the problem as main.cpp (backs up old one)
# usaco reset <name> Reset the solution: fresh main.cpp from template (STDIO wired up),
# delete binary + .out; keeps tests/ and .in (aliases: rm, delete)
@@ -36,7 +37,7 @@
# diff against expected output, show pass/fail
#
# Short aliases: n=new r=run b=build t=test d=done u=undo sk=skip o=open
# l/ls=list st=stats p=path tpl=template e=edit=vim
# l/ls=list st=stats p=path tpl=template e=edit=vim sy=sync
#
# Names may be unique prefixes: 'usaco e diam' finds diamond-collector.
#
@@ -66,6 +67,7 @@ case "$cmd" in
stats|st) cmd=stats ;;
path|p) cmd=path ;;
clean) cmd=clean ;;
sync|sy) cmd=sync ;;
template|tpl) cmd=template ;;
reset|rm|delete) cmd=reset ;;
*) usage ;;