CLI Reference¶
Complete reference for all wcheck commands and options.
Global Options¶
| Option | Description |
|---|---|
--version |
Show version and exit |
--help |
Show help message and exit |
status¶
Check the status of all repositories in a workspace.
Options¶
| Option | Type | Description |
|---|---|---|
-w, --workspace-directory |
PATH | Workspace directory (default: current directory) |
-f, --full |
flag | Show all repositories, not only those with changes |
-v, --verbose |
flag | Show more detailed information |
--show-time |
flag | Show time since last commit |
--fetch |
flag | Fetch from remotes before checking status |
--gui |
flag | Launch GUI interface |
--tui |
flag | Launch TUI interface |
Examples¶
Check current directory:
Check a specific workspace:
Show all repositories including clean ones:
Fetch and show with timestamps:
Launch GUI for branch management:
Compare multiple workspaces side by side:
This displays a table with one column per workspace, showing branch differences:
Comparing 2 workspaces
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Repo Name ┃ workspace1 ┃ workspace2 ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ project-a │ main │ develop │
│ project-b │ v1.0.0 (2M) │ v1.1.0 │
└───────────────┴────────────────┴────────────────┘
Output¶
Using workspace directory /home/user/projects
┏━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Repo Name ┃ Current Workspace ┃
┡━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ project-a (2M 3U) │ feature/new-feature │
│ project-b (1↑ 2↓) │ main │
│ project-c (1S) │ develop │
└───────────────────────┴───────────────────────────┘
Status indicators:
U- Untracked files (orange)M- Modified files (red)S- Staged files (magenta)↑- Commits to push (green)↓- Commits to pull (yellow)
wconfig¶
Compare workspace repository versions with a configuration file.
Options¶
| Option | Type | Description |
|---|---|---|
-w, --workspace-directory |
PATH | Workspace directory (default: current directory) |
-c, --config |
PATH | Required. Configuration file path |
-f, --full |
flag | Show all repositories, not only mismatches |
-v, --verbose |
flag | Show more detailed information |
--show-time |
flag | Show time since last commit |
--gui |
flag | Launch GUI interface |
--tui |
flag | Launch TUI interface |
Examples¶
Compare workspace to config:
Compare specific workspace:
Show all repos including matches:
Use GUI for branch switching:
Output¶
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Repo Name ┃ Workspace version ┃ Config version ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ project-a │ feature/branch │ main │
│ project-b │ v1.0.0 │ v1.1.0 │
└───────────────┴───────────────────┴────────────────┘
config-list¶
Compare multiple configuration files side by side.
Options¶
| Option | Type | Description |
|---|---|---|
-c, --config |
PATH | Required. Config files (can be used multiple times) |
-f, --full |
flag | Show all repositories, not only differences |
-v, --verbose |
flag | Show more detailed information |
--show-time |
flag | Show modification time |
--full-name |
flag | Show full file paths instead of filenames |
Examples¶
Compare two config files:
Compare three config files with full paths:
wcheck config-list -c /path/to/config1.yaml -c /path/to/config2.yaml -c /path/to/config3.yaml --full-name
Show all repositories:
Output¶
Comparing 2 config files
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Repo Name ┃ robot_a.yaml ┃ robot_b.yaml ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ navigation │ v2.0.0 │ v2.1.0 │
│ perception │ main │ develop │
│ planning │ v1.0.0 │ N/A │
└───────────────┴────────────────┴────────────────┘
config-versions¶
Compare repository versions across git branches of a configuration file.
Options¶
| Option | Type | Description |
|---|---|---|
-c, --config |
PATH | Required. Configuration file path |
-f, --full |
flag | Show all repositories, not only differences |
-v, --verbose |
flag | Show more detailed information |
--show-time |
flag | Show modification time for each branch |
--filter |
TEXT | Filter branches by pattern (can be used multiple times) |
--stash |
flag | Stash uncommitted changes before switching branches |
Examples¶
Compare across all branches:
Filter specific branches:
Stash changes before comparing:
Show all with verbose output:
Output¶
Comparing config versions in workspace.yaml
┏━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Repo Name ┃ main ┃ develop ┃ release ┃
┡━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ project-a │ v1.0.0 │ v1.1.0-dev │ v1.0.0 │
│ project-b │ main │ develop │ v2.0.0 │
└───────────────┴────────────┴────────────┴────────────┘
GUI Mode¶
The --gui flag (with status or wconfig) opens a graphical interface.
Features:
- Branch selector dropdown
- Checkout button
- Open in editor button
- Visual status indicators
- Config version comparison
Requirements
Install with: pip install wcheck[gui]
TUI Mode¶
The --tui flag (with status or wconfig) opens an interactive terminal interface.
Key bindings:
| Key | Action |
|---|---|
↑/↓ |
Navigate repositories |
Enter |
Open branch selection |
b |
Select branch (alternative) |
e |
Open in editor ($EDITOR) |
r |
Refresh |
q |
Quit |
Features:
- Repository table with status indicators
- Branch selection modal
- Config version comparison (in wconfig mode)
- Keyboard-driven navigation
Requirements
Install with: pip install wcheck[tui]