aboutsummaryrefslogtreecommitdiff
path: root/justfile
blob: eabf06c2c3a56d051aeb24fa8c30daa4f4569b38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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}}