-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add option to start term-cheat in filter mode
- Loading branch information
Fa!lko
committed
Feb 11, 2019
1 parent
4eb9359
commit 8304007
Showing
3 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import os, sys | ||
import argparse | ||
import termcheat.app | ||
|
||
termcheat.app.run() | ||
|
||
if '__main__' == __name__: | ||
parser = argparse.ArgumentParser( | ||
description='Collect and search terminal commands.', | ||
epilog='Your personal terminal cheat sheet.') | ||
parser.add_argument( | ||
'-f', | ||
'--filter', | ||
action='store_const', | ||
const=True, | ||
help='start in filter mode' | ||
) | ||
|
||
try: | ||
options = parser.parse_args() | ||
except: | ||
sys.exit(0) | ||
|
||
termcheat.app.run(options.filter) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
|
||
setup(name='TermCheat', | ||
version='0.1.8', | ||
version='0.1.11', | ||
description='Collect and find termial commands.', | ||
author='@[email protected]', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters