version: "3"
tasks:
default:
desc: Show available tasks
cmds:
- task --list
build:
desc: Build the CLI
cmds:
- cargo build
check:
desc: Run cargo check
cmds:
- cargo check
test:
desc: Run cargo test
cmds:
- cargo test
changelog:
desc: Generate CHANGELOG.md with git-cliff
cmds:
- git-cliff -o CHANGELOG.md
changelog-preview:
desc: Preview unreleased changelog output
cmds:
- git-cliff --unreleased
release:
desc: Run cargo-release in dry-run mode
cmds:
- cargo release {{.CLI_ARGS}}
release-execute:
desc: Run cargo-release and execute the release
cmds:
- cargo release {{.CLI_ARGS}} --execute
fmt:
desc: Verify formatting with rustfmt
cmds:
- cargo fmt -- --check
coverage:
desc: Run test coverage with cargo-llvm-cov and enforce 80% line coverage
cmds:
- cargo llvm-cov --all-targets --fail-under-lines 80
coverage-html:
desc: Generate an HTML coverage report with cargo-llvm-cov
cmds:
- cargo llvm-cov --all-targets --html
coverage-lcov:
desc: Generate an LCOV coverage report at lcov.info
cmds:
- cargo llvm-cov --all-targets --lcov --output-path lcov.info
doctor:
desc: Run the local environment and store health checks
cmds:
- cargo run -- doctor {{.CLI_ARGS}}
stat:
desc: Show local store statistics
cmds:
- cargo run -- stat {{.CLI_ARGS}}
sources:
desc: List indexed source paths
cmds:
- cargo run -- sources {{.CLI_ARGS}}
delete:
desc: Delete one indexed source path
cmds:
- cargo run -- delete {{.CLI_ARGS}}
clear:
desc: Clear all indexed content from the selected store
cmds:
- cargo run -- clear {{.CLI_ARGS}}
prune:
desc: Preview or remove stale indexed source paths
cmds:
- cargo run -- prune {{.CLI_ARGS}}
index:
desc: Index a file or directory
cmds:
- cargo run -- index {{.CLI_ARGS}}
query:
desc: Query the indexed store
cmds:
- cargo run -- query {{.CLI_ARGS}}
config-show:
desc: Show effective config
cmds:
- cargo run -- config show {{.CLI_ARGS}}
config-set:
desc: Set a config key and value
cmds:
- cargo run -- config set {{.CLI_ARGS}}
live-smoke:
desc: Run the ignored live Ollama smoke test (requires RAGCLI_LIVE_E2E=1 and a running Ollama)
cmds:
- RAGCLI_LIVE_E2E=1 cargo test --test live_ollama_smoke -- --ignored {{.CLI_ARGS}}