aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile39
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}}