Commit graph

326 commits

Author SHA1 Message Date
0rax
fc2bb05f7b change block generator not to held block is they are empty + minor pep8 refacto (pylint:8.85/10) 2013-11-07 11:23:51 +01:00
0rax
b264c19491 remove debug 2013-11-07 00:42:37 +01:00
0rax
4c5bd8efa5 indent block fail :x, no more triple output 2013-11-07 00:41:36 +01:00
0rax
69428a7279 Some minor modification (open inside the generator for better readability) + one bug fixe (the last block wasnt yiel by the generator) 2013-11-07 00:34:37 +01:00
0rax
d85fab763b Following #128 talk about how output should be made for search. Just changed the way on how the search function output the result, no more ala grep output.
Cheatsheets are now parsed [by CheatSheets.__parse_cheat_command_block(self, cheat_fp)] into block (separated by newline), i have seen that all block in cheatsheets are delimited by a blank line, so instead of parsing from first consecutive # to last consecutive command, an output that is not used by all sheets (reference to "7z" cheatfile).
And so the block are parsed by begin of the document to blanck line to end of the document.
Finally the output is made by indenting the block content by 4 spaces + the title of the sheet on the top.
This is a way to handle subcommands in my mind (search "git commit" and you now have all what you want)
2013-11-07 00:23:54 +01:00
0rax
b1212052f7 Added search function into cheat, used a grep like output, if needed it could be changed, discussion is open inside #128 issue 2013-11-06 00:36:49 +01:00
0rax
b1df8fe3cc fix edit autocomplete (just dont show description of -e/--edit option and i dont know why 2013-10-11 19:15:07 +02:00
0rax
53978fa86f Add hint to use sudo when creation fail of sheet. 2013-10-11 18:56:03 +02:00
0rax
fc4b047958 In response to Issue #108: Added option to copy sheet while not editable. 2013-10-11 18:32:21 +02:00
0rax
b6e73539bd Added autocompletion for fish shell 2013-10-11 16:26:24 +02:00
Chris Lane
f5a7c30dc4 Merge pull request #110 from TiTi/master
Add cheatsheets (lsof, netstat, nmap, pdftk, ps, sam2p [new])
2013-10-08 16:58:43 -07:00
Chris Lane
9870deee6f Cheatsheets: minor tweaks
Made minor changes to the ls and rm cheatsheets.
2013-10-08 19:52:46 -04:00
TiTi
9d1a65b4bb Add cheatsheets 2013-10-09 00:16:31 +02:00
TiTi
97182d4cf1 Add a troubleshooting section (python 2.6 doesn't comes with the argparse module) 2013-10-08 23:55:25 +02:00
ashernor
d9bce2f3c4 add cheatsheet for df iwconfig ls and rm 2013-10-06 19:47:15 +02:00
Chris Lane
545c35722a Merge branch 'master' of https://github.com/0rax/cheat into 0rax-master
* 'master' of https://github.com/0rax/cheat:
  Added 1 check for EDITOR var, if EDITOR is set to "" + added try catch to catch subprocess error like EDITOR variable pointing to a non installed editor
  Split EDITOR variable to prevent error on popen while using EDITOR var with spaces
  prepare to merge
  Revert Print back to main, would be easier to integrate other positional option like that
2013-09-23 20:44:41 -04:00
Chris Lane
f38da5dc69 Trivial whitespace fix on cheatsheets/date 2013-09-23 20:42:26 -04:00
Chris Lane
176120c3d6 Merge branch 'date-cheat' of https://github.com/gbremer/cheat into gbremer-date-cheat
* 'date-cheat' of https://github.com/gbremer/cheat:
  Adding date cheat
2013-09-23 20:42:00 -04:00
Chris Lane
2240eb6fd1 Trivial whitespace fix on chown cheatsheet. 2013-09-23 20:40:53 -04:00
Chris Lane
f52c0d59ba Merge branch 'chown-chgrp' of https://github.com/gbremer/cheat into gbremer-chown-chgrp
* 'chown-chgrp' of https://github.com/gbremer/cheat:
  Adding reference example to chown
2013-09-23 20:40:15 -04:00
Chris Lane
4bc2a27b57 Merge pull request #106 from engstrom/master
Added cheatsheet for the top command
2013-09-23 17:39:20 -07:00
Chris Lane
6eb7ec04ff Merge pull request #102 from gbremer/ssh-keygen-fix
Fixing bit size to standard 4096
2013-09-23 17:37:37 -07:00
Chris Lane
b4d19eb4ae Merge pull request #104 from gbremer/find-commands
Adding additional find commands
2013-09-23 17:37:12 -07:00
Chris Lane
350a4ee863 Merge pull request #105 from gbremer/mkdir-commands
Adding mkdir cheat
2013-09-23 17:36:35 -07:00
engstrom
75137cf507 Added cheatsheet for the top command 2013-09-23 18:27:30 -06:00
Grant Bremer
bcebf8dfea Adding mkdir cheat 2013-09-21 16:31:17 -04:00
Grant Bremer
bbab921bf8 Adding additional find commands 2013-09-21 13:39:46 -04:00
Grant Bremer
73df1ae517 Adding date cheat 2013-09-21 13:23:23 -04:00
Grant Bremer
17b7fec47c Fixing bit size to standard 4096 2013-09-21 13:15:09 -04:00
Grant Bremer
ffd8ec833f Adding reference example to chown 2013-09-21 13:13:16 -04:00
0rax
50b04c52e1 Added 1 check for EDITOR var, if EDITOR is set to "" + added try catch to catch subprocess error like EDITOR variable pointing to a non installed editor 2013-09-20 02:27:06 +02:00
0rax
72b7af171d Split EDITOR variable to prevent error on popen while using EDITOR var with spaces 2013-09-20 02:12:48 +02:00
0rax
42642526f8 Merged to the new version 2013-09-20 02:04:14 +02:00
0rax
e02e5011fc prepare to merge 2013-09-20 02:03:30 +02:00
Chris Lane
0cc76a78a1 Trivial changes to the head cheatsheet. 2013-09-19 19:45:28 -04:00
Chris Lane
0d60d6b558 Merge branch 'patch-6' of https://github.com/maggick/cheat into maggick-patch-6
* 'patch-6' of https://github.com/maggick/cheat:
  correction
  minor spell corrections
  Create head
2013-09-19 19:42:52 -04:00
Chris Lane
963496db86 Restored -d functionality to original
During the last commit, the -d functionality was changed (likely
unintentionally) such that it outputted a raw Python list rather than
lines printed to stdout. I've restored the original functionality,
because the autocompletion scripts rely upon it.
2013-09-19 19:05:22 -04:00
Chris Lane
da2b0a872d Deleted cruft
Deleted a 'foo' cheatsheet I accidentally committed while testing.
2013-09-19 18:45:43 -04:00
Chris Lane
bbed1c5851 Removed the -c option from argparse
A previous revision merged the functionality implemented by the -c and
-e options, but the -c option was reintroduced during the last revision
(probably) by accident. I took that out given that it no longer serves
a purpose.
2013-09-19 18:43:56 -04:00
roemer_j
a0cfee02d2 Revert Print back to main, would be easier to integrate other positional option like that 2013-09-16 04:10:45 +02:00
roemer_j
c87e741f34 Made a OO refactoring, cleaner in my mind 2013-09-16 04:07:34 +02:00
roemer_j
1e1520ce56 Removed old help, just forgot to remove at first commit 2013-09-16 03:28:08 +02:00
roemer_j
526a9f595a Refactored for argparse, the help output dont remain the same : too much sheets so I thought that do not print cheatlist every time could be a good things. Added description + epilogue (examples) to the standart argparse output. 2013-09-16 03:26:20 +02:00
Matthieu Keller
0501f8cbfe correction 2013-09-15 17:34:15 +02:00
Johann Saunier
98b254b799 2to3 2013-09-15 11:02:27 +02:00
Chris Lane
5a026dfb41 Merge pull request #94 from fmunch/uname
Added uname cheatsheet
2013-09-14 18:20:40 -07:00
Chris Lane
4224acbc5c Merge pull request #95 from bfontaine/patch-1
Minor typo in README fixed
2013-09-14 18:19:54 -07:00
Baptiste Fontaine
d3914c0265 Typo fixed 2013-09-15 01:41:00 +02:00
Florent Munch
8dae29ad42 Added information for uname -v 2013-09-15 01:07:04 +02:00
Florent Munch
9f182d684d Added uname cheatsheet 2013-09-15 00:57:06 +02:00