mirror of
https://github.com/cheat/cheat.git
synced 2025-09-03 02:28:29 +02:00
Initial commit.
This commit is contained in:
24
cheat2
Executable file
24
cheat2
Executable file
@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env ruby
|
||||
|
||||
# Create a hash of cheatsheets
|
||||
cheats = {
|
||||
'tar' => '
|
||||
some long string
|
||||
some long string
|
||||
some long string
|
||||
some long string
|
||||
some long string
|
||||
some long string
|
||||
',
|
||||
|
||||
'git' => '
|
||||
some long string about git
|
||||
some long string about git
|
||||
some long string about git
|
||||
some long string about git
|
||||
some long string about git
|
||||
',
|
||||
}
|
||||
|
||||
# output
|
||||
puts cheats[ARGV[0]] || 'No cheat sheet found.'
|
Reference in New Issue
Block a user