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:
@@ -52,6 +52,8 @@ _usaco() {
|
||||
'path:print problem directory'
|
||||
'p:print problem directory'
|
||||
'clean:delete binaries and backups'
|
||||
'sync:pull website edits, push local commits'
|
||||
'sy:pull website edits, push local commits'
|
||||
'template:re-copy template.cpp as main.cpp (backs up old)'
|
||||
'tpl:re-copy template.cpp as main.cpp (backs up old)'
|
||||
'reset:fresh main.cpp from template, delete binary/.out'
|
||||
@@ -62,7 +64,7 @@ _usaco() {
|
||||
_describe 'command' cmds
|
||||
elif (( CURRENT == 3 )); then
|
||||
case "$words[2]" in
|
||||
new|n|list|l|ls|stats|st|clean) ;; # no problem-name argument
|
||||
new|n|list|l|ls|stats|st|clean|sync|sy) ;; # no problem-name argument
|
||||
test|t)
|
||||
local -a subs
|
||||
subs=('create:save a new test case' 'add:save a new test case' 'new:save a new test case')
|
||||
|
||||
Reference in New Issue
Block a user