cheat/cheat2

25 lines
399 B
Plaintext
Raw Normal View History

2013-07-30 03:34:41 +02:00
#!/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.'