mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Took out listing of Readme and License file on cheatsheets
This commit is contained in:
parent
0c027b792d
commit
e97d73a0e1
1 changed files with 4 additions and 1 deletions
5
cheat
5
cheat
|
@ -41,7 +41,9 @@ def cheat_files(cheat_directories):
|
|||
for cheat_dir in reversed(cheat_directories):
|
||||
cheats.update(dict([(cheat, cheat_dir)
|
||||
for cheat in os.listdir(cheat_dir)
|
||||
if not cheat.startswith('.')
|
||||
if not cheat.endswith('md')
|
||||
and not cheat.startswith('.')
|
||||
and not cheat.startswith('LICENSE')
|
||||
and not cheat.startswith('__')]))
|
||||
return cheats
|
||||
|
||||
|
@ -84,6 +86,7 @@ def main():
|
|||
print 'No cheatsheet found for %s.' % keyphrase
|
||||
|
||||
|
||||
|
||||
def pretty_print(filename):
|
||||
try:
|
||||
if os.path.splitext(filename)[1]:
|
||||
|
|
Loading…
Reference in a new issue