mirror of https://github.com/cheat/cheat.git
Added some comments to the cheat file.
This commit is contained in:
parent
f3c37a37eb
commit
1e26280da7
2
cheat
2
cheat
|
@ -2,6 +2,7 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
# assembles a list of directories containing cheatsheets
|
||||||
def cheat_directories():
|
def cheat_directories():
|
||||||
default_directories = [os.path.expanduser('~/.cheat')]
|
default_directories = [os.path.expanduser('~/.cheat')]
|
||||||
try:
|
try:
|
||||||
|
@ -17,6 +18,7 @@ def cheat_directories():
|
||||||
else:
|
else:
|
||||||
return default
|
return default
|
||||||
|
|
||||||
|
# assembles a dictionary of cheatsheets found in the above directories
|
||||||
def cheat_files(cheat_directories):
|
def cheat_files(cheat_directories):
|
||||||
cheats = {}
|
cheats = {}
|
||||||
for cheat_dir in reversed(cheat_directories):
|
for cheat_dir in reversed(cheat_directories):
|
||||||
|
|
Loading…
Reference in New Issue