💻 CLI Command Overview
leetrs provides a clean set of command-line subcommands built with clap.
📋 Command Summary Table
| Subcommand | Arguments / Flags | Purpose |
|---|---|---|
auth | — | Interactively authenticate via Chrome, Firefox, or manual token input |
status | — | Display active authentication status and token previews |
tui | [language] | Launch interactive Ratatui terminal problem browser |
pick | <identifier> [language] [-p, --preview] | Fetch problem description & stub, generate local files, and open editor |
test | <file> | Test local solution against sample test cases without official submission |
submit | <file> | Submit local solution to LeetCode for full judging and statistics |
completion | <shell> | Generate shell autocomplete scripts (bash, zsh, fish) |
🌐 Global Flags
| Flag | Short | Description |
|---|---|---|
--help | -h | Print help information for leetrs or any subcommand |
--version | -V | Print version information (leetrs 1.1.0) |
⚡ Default Action
Running leetrs with no arguments defaults to launching the interactive TUI:
leetrs
# is equivalent to:
leetrs tui