Skip to content

mattn/cheat1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cheat

Status: A very basic working version. Will improve when I can find some time.

Reimplementation of Chris Lane's cheatsheet script in Go.

I'm mostly doing this as a means of learning Go as it seemed like a nice first project to start with.

Screenshot

Install

I guess this would work!

go get github.com/dufferzafar/cheat

Usage

~/.cheatrc - A JSON based config file which stores basic configuration.

cheat show git - Show the git cheatsheet

cheat edit git - Edit the git sheet. A new one will be created if it doesn't already exist.

cheat show git --copy 12 - Copy the 12th cheat from the sheet

Todo

  • Find a way of using all the sheets from chris's repo, along with stuff that I've added.

  • Allow multiple cheat directories

  • Colors on the AppHelpTemplate.

  • Or execute a command by, cheat git 12 ?

  • User's favorite editor, with support for command line parameters.

  • Wrap the output to a fit width? like 79 characters?

  • Update cheat sheets from chris' repo, cheat --update for updating it the safe way, and cheat --update --force for overwriting all the cheats with the downloaded version.

  • Should grep support be added? or can that be achived by grepping things?

Far Future

Prior Art

About

Cheatsheets for command line, because, you know, life is too short to read manpages.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • Go 100.0%