mirror of
https://github.com/cheat/cheat.git
synced 2025-09-01 17:48:30 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
cf8893ec5f | |||
0a3fd3559c | |||
371c0af156 | |||
8677e0c35a |
9
CONTRIBUTING.md
Normal file
9
CONTRIBUTING.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Contributing
|
||||||
|
============
|
||||||
|
If you would like to contribute cheetsheets or program functionality, please
|
||||||
|
fork this repository, make your changes, and send me a pull request.
|
||||||
|
|
||||||
|
Python code show follow the standards laid out by [PEP 8][].
|
||||||
|
|
||||||
|
|
||||||
|
[PEP 8]: http://legacy.python.org/dev/peps/pep-0008/
|
@ -104,6 +104,13 @@ enable this feature, set a `CHEATCOLORS` environment variable:
|
|||||||
|
|
||||||
export CHEATCOLORS=true
|
export CHEATCOLORS=true
|
||||||
|
|
||||||
|
### Enabling Command-line Autocompletion ###
|
||||||
|
The `cheat/autocompletion` directory contains scripts to enable command-line
|
||||||
|
autocompletion for various shells. To activate autocompletion, simply copy the
|
||||||
|
appropriate script to the appropriate path on your system. (The "appropriate
|
||||||
|
path" will vary on a per-platform basis, so this documentation shall not
|
||||||
|
speculate as to where that may be.)
|
||||||
|
|
||||||
|
|
||||||
Related Projects
|
Related Projects
|
||||||
----------------
|
----------------
|
||||||
|
@ -38,7 +38,7 @@ from docopt import docopt
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# parse the command-line options
|
# parse the command-line options
|
||||||
options = docopt(__doc__, version='cheat 2.0.4')
|
options = docopt(__doc__, version='cheat 2.0.6')
|
||||||
|
|
||||||
# list directories
|
# list directories
|
||||||
if options['--directories']:
|
if options['--directories']:
|
||||||
|
@ -23,7 +23,7 @@ def colorize(sheet_content):
|
|||||||
|
|
||||||
def die(message):
|
def die(message):
|
||||||
""" Prints a message to stderr and then terminates """
|
""" Prints a message to stderr and then terminates """
|
||||||
warn (message)
|
warn(message)
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
12
setup.py
12
setup.py
@ -1,18 +1,9 @@
|
|||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
import os
|
import os
|
||||||
|
|
||||||
data = [
|
|
||||||
('/usr/share/zsh/site-functions', ['cheat/autocompletion/_cheat.zsh']),
|
|
||||||
('/etc/bash_completion.d' , ['cheat/autocompletion/cheat.bash']),
|
|
||||||
('/usr/share/fish/completions' , ['cheat/autocompletion/cheat.fish'])
|
|
||||||
]
|
|
||||||
|
|
||||||
if os.name == 'nt':
|
|
||||||
data = []
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = 'cheat',
|
name = 'cheat',
|
||||||
version = '2.0.4',
|
version = '2.0.6',
|
||||||
author = 'Chris Lane',
|
author = 'Chris Lane',
|
||||||
author_email = 'chris@chris-allen-lane.com',
|
author_email = 'chris@chris-allen-lane.com',
|
||||||
license = 'GPL3',
|
license = 'GPL3',
|
||||||
@ -30,7 +21,6 @@ setup(
|
|||||||
'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f]
|
'cheat.cheatsheets': [f for f in os.listdir('cheat/cheatsheets') if '.' not in f]
|
||||||
},
|
},
|
||||||
scripts = ['bin/cheat'],
|
scripts = ['bin/cheat'],
|
||||||
data_files = data,
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
'docopt >= 0.6.1',
|
'docopt >= 0.6.1',
|
||||||
'pygments >= 1.6.0',
|
'pygments >= 1.6.0',
|
||||||
|
Reference in New Issue
Block a user