From 9f5978186ac3de07f4325975fecf4f538fe713b6 Mon Sep 17 00:00:00 2001 From: Sam Scholten Date: Mon, 15 Dec 2025 19:34:17 +1000 Subject: Init v0.1.0 --- justfile | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 justfile (limited to 'justfile') diff --git a/justfile b/justfile new file mode 100644 index 0000000..eabf06c --- /dev/null +++ b/justfile @@ -0,0 +1,39 @@ +# ScholScan Go Implementation + +# Default recipe +default: + @just --list + +# Build the binary +build: + go build -o scholscan . + +# Install to system (optional) +install: + go install . + +# Run tests +test: + go test ./... + +# Clean cache (only works if running from project directory) +clean-cache: + ./scholscan clean + +# Format Go code +fmt: + go fmt ./... + +# Run linter (requires golangci-lint) +lint: + golangci-lint run + +# Example: Train model from articles and RSS feeds (provide your own paths) +example-train articles feeds: + @mkdir -p /tmp/scholscan + ./scholscan train {{articles}} --rss-feeds {{feeds}} > /tmp/scholscan/model.json + @echo "Model saved to /tmp/scholscan/model.json" + +# Example: Scan with trained model (provide your own paths) +example-scan model url: + ./scholscan scan --model {{model}} --url {{url}} -- cgit v1.2.3