diff options
| author | Sam Scholten | 2025-12-15 19:34:17 +1000 |
|---|---|---|
| committer | Sam Scholten | 2025-12-15 19:34:59 +1000 |
| commit | 9f5978186ac3de07f4325975fecf4f538fe713b6 (patch) | |
| tree | 41440b703054fe59eb561ba81d80fd60380c1f7a /justfile | |
| download | scholscan-9f5978186ac3de07f4325975fecf4f538fe713b6.tar.gz scholscan-9f5978186ac3de07f4325975fecf4f538fe713b6.zip | |
Init v0.1.0
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 39 |
1 files changed, 39 insertions, 0 deletions
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}} |
