I’ve made a snap of a small command line tool called cheat as part of the Google Code In. In a nutshell it allows you to quickly view a cheatsheet for a specified command. For example:
$ cheat tar
# To extract an uncompressed archive:
tar -xvf '/path/to/foo.tar'
# To extract a .gz archive:
tar -xzvf '/path/to/foo.tgz'
# To create a .gz archive:
tar -czvf '/path/to/foo.tgz' '/path/to/foo/'
# To extract a .bz2 archive:
tar -xjvf '/path/to/foo.tgz'
# To create a .bz2 archive:
tar -cjvf '/path/to/foo.tgz' '/path/to/foo/'
Installation
sudo snap install --edge cheat-snap
If you have any problems or if you got it to work reply to this thread. Thanks
Thanks for the feedback. I wasn’t aware of the second point so thanks for bringing that to my attention, however, when I was testing it the cheat command seemed to work fine.
@jakewalker are you interested in following with this now that google code-in has finished? I would be happy to help you with the few steps that are missing. And we can see if @bernermic is interseted in joining forces with the snapcrafters to maintain cheat as a team until it’s adopted by upstream.
sorry for the (really) late answer . I would appreciate it to join forces in maintaining the cheat snap.
I moved the snap version of cheat in agreement with the Maintainer of cheat into the cheat repo (https://github.com/cheat/snap).
Cheat has been re-written totally as a go version just recently. As of now I try to got a first draft to run, but it would be great to have further support there or I am open for discussion for choosing @jakewalker’s version.
Current version is available (right now basically just for amd64 systems in the edge channel.
snap install --edge cheat
or
snap refresh --edge cheat