Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ rtk pytest # Python tests (failures only, 90% reduction)
rtk pip list # Python packages (auto-detect uv, 70% reduction)
rtk go test # Go tests (NDJSON, 90% reduction)
rtk golangci-lint run # Go linting (JSON, 85% reduction)
rtk sqlfluff lint # SQL linting (JSON, 75% reduction)
```

### Data & Analytics
Expand Down Expand Up @@ -276,6 +277,7 @@ rtk pytest # Test failures with state machine parser (90%
rtk pip list # Package list (auto-detect uv, 70% reduction)
rtk pip install <package> # Install with compact output
rtk pip outdated # Outdated packages (85% reduction)
rtk sqlfluff lint # SQL linter, group violations by rule/file (75% reduction)

# Go
rtk go test # NDJSON streaming parser (90% reduction)
Expand Down Expand Up @@ -625,6 +627,7 @@ The hook is included in this repository at `.claude/hooks/rtk-rewrite.sh`. To us
| `pip list/install/outdated` | `rtk pip ...` |
| `go test/build/vet` | `rtk go ...` |
| `golangci-lint run` | `rtk golangci-lint run` |
| `sqlfluff lint` | `rtk sqlfluff lint` |
| `docker ps/images/logs` | `rtk docker ...` |
| `kubectl get/logs` | `rtk kubectl ...` |
| `curl` | `rtk curl` |
Expand Down
12 changes: 12 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mod pytest_cmd;
mod read;
mod ruff_cmd;
mod runner;
mod sqlfluff_cmd;
mod summary;
mod tee;
mod tracking;
Expand Down Expand Up @@ -502,6 +503,13 @@ enum Commands {
args: Vec<String>,
},

/// SQLFluff SQL linter with compact output
Sqlfluff {
/// SQLFluff arguments (e.g., lint models/, fix models/staging/)
#[arg(trailing_var_arg = true, allow_hyphen_values = true)]
args: Vec<String>,
},

/// Pytest test runner with compact output
Pytest {
/// Pytest arguments
Expand Down Expand Up @@ -1400,6 +1408,10 @@ fn main() -> Result<()> {
ruff_cmd::run(&args, cli.verbose)?;
}

Commands::Sqlfluff { args } => {
sqlfluff_cmd::run(&args, cli.verbose)?;
}

Commands::Pytest { args } => {
pytest_cmd::run(&args, cli.verbose)?;
}
Expand Down
Loading