Add usaco sync; track saved test outputs
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:
@@ -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 ;;
|
||||
|
||||
Reference in New Issue
Block a user