Simple Go CLI to fetch and display syntax snippets for popular programming languages like Go, Python, etc., from a remote YAML-based backend. Built-in alias support, multi-layer caching, and colorized output. Fast, clean, and made for DevOps/SREs who live in terminals. Now at v0.1.0-alpha with a slick Makefile and no import cycle headaches! 🚀
All cheat sheets are hosted here:
Backend YAML Files
Multi-layer caching for speed and offline support:
- 🧠 In-memory – Fastest access after first load
- 💾 Local file – Cached YAML files stored locally
- 🌐 Remote GitHub – Fetched if not cached or forced refresh
Use -refresh-all to reload everything manually.
sheet <language> [section1,section2,...]sheet go map,slice
sheet go help
sheet python allsheet --refresh-all| Flag | Shortcut | Description |
|---|---|---|
--backend |
-b |
Custom backend base URL or local path |
--detailed |
-d |
Show detailed output with descriptions |
--refresh |
-r |
Force refresh cache for specified language |
--refresh-all |
-R |
Refresh cache for all languages |
Every section can optionally define an alias (e.g., map → m) in the YAML.
Use help as the section name to list all available sections with their aliases:
sheet go help- 💙 Titles = Cyan
- 💛 Descriptions = Yellow
- 💚 Syntax/Code = Green
Built-in ANSI terminal coloring. Works great on:
- macOS/Linux terminals ✅
- Git Bash, WSL, MobaXterm on Windows ✅
sheet go map---- Map ----
Go maps basics
m := map[string]int{"a": 1, "b": 2}
fmt.Println(m["a"]) // access map
Grab it from GitHub:
go install github.com/thineshsubramani/sheet-cli/cmd/sheet@v0.1.0-alphaBuild locally for Windows/Linux:
cd sheet-cli
make allBinaries land in bin/:
sheet-windows-amd64.exesheet-linux-amd64
Clean up:
make cleanJust dropped! The first alpha release is live on GitHub:
https://github.com/thineshsubramani/sheet-cli/releases/tag/v0.1.0-alpha
What’s New:
- 🛠️ Fixed import cycle with a shiny new
filepackage. - 📦 Added
Makefilefor easy Windows/Linux builds. - 💪 Ready for testing with full caching and alias support.
Download the binaries and give it a spin! Feedback welcome—this is alpha, so expect some rough edges. 🤘
Run, fetch, and hack. Update your YAMLs, hit --refresh-all, and sync changes instantly.
Made for SREs and CLI lovers who don’t wanna open a browser for every damn syntax question.
Let me know if you want to add:
- 📂 Support for custom local YAML paths
- 🔌 Offline-only mode
- 🔄 GitHub-style auto-update checker
Happy hacking, Thinesh 🤘
- Vibes & Emojis: Kept the bold, punchy tone and emoji flair intact! 😎
- Updates:
- Changed
go run main.gotosheetfor installed usage. - Updated flags to match the latest code (
--refresh,--refresh-all). - Added
-Rshortcut for--refresh-all. - Included
v0.1.0-alpharelease details with GitHub link. - Highlighted
Makefileand import cycle fix. - Fixed typo reference (
§ions→sections).
- Changed
- Backend: Assumes
https://raw.githubusercontent.com/thineshsubramani/cheatsheet/main/is live. If not, you may need a local YAML path or mock data for testing.
If you need tweaks or hit runtime issues (e.g., backend errors), share the details, and I’ll keep the fixes as slick as this README! 🔥