Download credit.sh from a3216/gcli2api: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/a3216/gcli2api/resolve/main/credit.sh
- Command line
-
hf download hf://spaces/a3216/gcli2api/credit.sh
-
curl -L -o credit.sh https://huggingface.co/spaces/a3216/gcli2api/resolve/main/credit.sh
368 Bytes
| # credit.sh — WorkBuddy 积分日报(默认美化输出) | |
| # | |
| # 用法: | |
| # ./credit.sh # 人类可读日报 | |
| # ./credit.sh -json # 原始 JSON | |
| # | |
| # 二进制升级: go build -o credit ./cmd/credit | |
| set -euo pipefail | |
| cd "$(dirname "$0")" | |
| if [[ "${1:-}" == "-json" ]]; then | |
| exec ./credit | |
| fi | |
| exec ./credit -pretty | |