mirror of
https://github.com/cheat/cheat.git
synced 2024-11-25 15:31:36 +01:00
25 lines
399 B
Plaintext
25 lines
399 B
Plaintext
|
#!/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.'
|