Separate lib, new problems and script for web

This commit is contained in:
2026-08-26 22:25:19 +01:00
parent 6fd6d70b04
commit afdab7d4bd
44 changed files with 1060 additions and 211 deletions
+6
View File
@@ -0,0 +1,6 @@
# usaco open <name>
[[ $# -ge 1 ]] || usage
dir="$(find_problem "$1")"
[[ -f "$dir/.url" ]] || { echo "Error: no URL saved for '$1' (use --url with 'new', or write $dir/.url)" >&2; exit 1; }
xdg-open "$(cat "$dir/.url")" >/dev/null 2>&1 &
echo "Opening $(cat "$dir/.url")"