How mukh4w/cbox works
cbox is a small Rust terminal command launcher: users save project-local or global commands, search and select them, then inject a selection into the shell or execute it. The graph separates shell integration, the interactive workflow, and command persistence. The README documents the supported shell flows; sampled source confirms the TUI/store operations, but omitted portions limit detail on some runtime relationships.
Main entry points: main.rs Interactive TUI · store.rs Command store
Components 9
Shell integration
- Bash, Zsh, Fish
- Integration scripts
src/main.rs
Command launcher
- Interactive TUI
src/main.rs - Fuzzy search
src/main.rs - Select or edit
src/main.rs - Inject or execute
src/main.rs
Command storage
- Command store
src/store.rs - Local and global files
src/store.rs
Other components
- Shell user
Connections 11
- Shell user → Bash, Zsh, Fish: uses
README.md - Bash, Zsh, Fish → Integration scripts: loads scripts
README.md - Integration scripts → Interactive TUI: opens launcher
src/main.rs - Shell user → Interactive TUI: opens directly
README.md - Interactive TUI → Command store: loads commands
README.md - Interactive TUI → Fuzzy search: filters entries
src/main.rs - Fuzzy search → Select or edit: ranks matches
src/main.rs - Select or edit → Command store: adds or deletes
src/main.rs - Select or edit → Inject or execute: returns selection
src/main.rs - Inject or execute → Bash, Zsh, Fish: injects or runs
README.md - Command store → Local and global files: reads and writes
src/store.rs