A fast and flexible cheatsheet manager built with Go. Complete documentation is available at https://github.com/darrikonn/cheat/API.md
Usage:
cheat [regex] [command]
Available Commands:
add Add a new cheat
delete Delete a cheat
edit Edit a cheat
get Get cheat info
* Search cheats from regex (default)
Flags:
-h, --help help for cheat
--verbose verbose output
--version version for cheat
Use "cheat [command] --help" for more information about a command.
Search your cheats from a regex
Usage:
cheat [regex] [flags]
Flags:
-h, --help help for search
-i, --ignore-case Case insensitive search
Global Flags:
--verbose verbose output
cheat "git.*"
cheat
cheat GIT -i
Add a new cheat to your cheatsheet. You'll be prompted for the cheat's "description" in your preferred editor.
Usage:
cheat [regex] add [flags]
Aliases:
add, a
Flags:
-h, --help help for add
-w, --weight int weight of the cheat; used for sorting query results
Global Flags:
--verbose verbose output
cheat git add
cheat grb a
cheat "git add -u" a --weight 2
Delete a cheat from your cheatsheet.
Usage:
cheat [regex] delete [flags]
Aliases:
delete, d
Flags:
-h, --help help for delete
-i, --ignore-case Case insensitive search
-y, --yes Skip prompt
Global Flags:
--verbose verbose output
cheat git delete
cheat grb d
cheat "GIT ADD -u" d --yes -i
Edit a cheat's "name" and/or "weight". You'll also be prompted for the cheat's "description" in your preferred editor.
Usage:
cheat [regex] edit [flags]
Aliases:
edit, e
Flags:
-h, --help help for edit
-i, --ignore-case Case insensitive search
-n, --name string Rename the cheat
-w, --weight int Weight of the cheat; used for sorting query results
Global Flags:
--verbose verbose output
cheat git edit
cheat grb e --weight 2 --name "new name"
cheat "git ADD -u" e -i
Get a cheat info by name
Usage:
cheat [regex] get [flags]
Aliases:
get, g
Flags:
-h, --help help for get
-i, --ignore-case Case insensitive search
Global Flags:
--verbose verbose output
cheat git get
cheat grb g
cheat "GIT ADD -u" g -i