summaryrefslogtreecommitdiff
path: root/cmd2.py
Commit message (Collapse)AuthorAgeFilesLines
* Basic structure for cmd2 as a packagekotfu2018-04-161-4069/+0
|
* Revert "Basic structure for cmd2 as a package"kotfu2018-04-161-0/+4069
| | | | This reverts commit 4a3d01b679c5db7f6cb670ca981a953eb3b98dc5.
* Basic structure for cmd2 as a packagekotfu2018-04-161-4069/+0
| | | | Still have a fair amount of work to do to get this sorted.
* Changed setup.py requirement for pyperclip to >= 1.5.27 instead of 1.6.0Todd Leonhardt2018-04-161-1/+7
| | | | This is to support installation from package managers on older OSes such as Debian 9.
* Finished removing all dependencies on the six moduleTodd Leonhardt2018-04-151-4/+3
|
* Started removing dependency on sixTodd Leonhardt2018-04-151-103/+24
| | | | | | | Removed all dependency on six other than for six.moves.input Also: - Started removing code branches which were for Python 2 support
* Merged master into delete_optparse branchTodd Leonhardt2018-04-151-207/+160
|\ | | | | | | | | Also: - Bumped version to 0.9.0
| * Comment changeKevin Van Brunt2018-04-151-1/+1
| |
| * Comment updateKevin Van Brunt2018-04-151-1/+1
| |
| * Updated comments and examplesKevin Van Brunt2018-04-151-0/+1
| |
| * More unit tests and commentsKevin Van Brunt2018-04-151-0/+3
| |
| * Improving documentationKevin Van Brunt2018-04-141-11/+18
| |
| * Still hammering out adding an opening quoteKevin Van Brunt2018-04-141-11/+13
| |
| * Corrected how an opening quote is added to delimited matches like pathsKevin Van Brunt2018-04-141-8/+13
| |
| * Changed opening quote check and comment for clarityKevin Van Brunt2018-04-141-3/+3
| |
| * Preparation for 0.8.5 releaseTodd Leonhardt2018-04-131-1/+1
| | | | | | | | | | - Bumped version to 0.8.5 - Added details to CHANGELOG.md regarding recent changes
| * Correcting when to add an opening quoteKevin Van Brunt2018-04-141-3/+3
| |
| * Added more clarification to commentKevin Van Brunt2018-04-131-5/+4
| |
| * Added commentKevin Van Brunt2018-04-131-4/+5
| |
| * Simplifying adding opening quotesKevin Van Brunt2018-04-131-166/+72
| |
| * Fixed comment and changed Python 3 check to use sixKevin Van Brunt2018-04-131-2/+2
| |
| * Removed unused variablesKevin Van Brunt2018-04-131-2/+0
| |
| * Added better check for whether a path is a directoryKevin Van Brunt2018-04-131-3/+4
| |
| * Fixed unbound local warningKevin Van Brunt2018-04-131-3/+3
| |
| * Added some basic user completion on WindowsKevin Van Brunt2018-04-131-18/+24
| |
| * Allowing the use of ~user expansion in pathsKevin Van Brunt2018-04-121-29/+53
| |
| * #350 Pass the return value back through for wrapped functions.Eric Lin2018-04-121-3/+3
| |
* | Merge branch 'master' into delete_optparseTodd Leonhardt2018-04-111-15/+140
|\ \ | |/ | | | | | | # Conflicts: # cmd2.py
| * Removed an emty line.Eric Lin2018-04-111-1/+0
| |
| * Added a with_category decorator that can be used to tag a command category.Eric Lin2018-04-111-7/+51
| | | | | | | | | | | | | | | | | | Changed the detection of with_argparse decorated commands to be less hacky/brittle. Now it tags the function with help_summary. Fixed issue with handling commands that provide a custom help_ function. We can now redirect the output to a string to be formatted with the other commands. Added some documentation explaining the new help categories. Updated unit tests.
| * Fixed issue where categorization is skipped when there's a help_<command> ↵Eric Lin2018-04-111-6/+11
| | | | | | | | | | | | | | | | function provided. In verbose help, added check for argparse usage block (starting with 'usage: '), to skip that block and move to the next comment block Added unit tests for new categorization code Updated example to demonstrate skipping of argparse usage statement
| * Removed extra new lineKevin Van Brunt2018-04-111-1/+0
| |
| * Added verbose help output with help -v or help --verboseEric Lin2018-04-101-12/+59
| | | | | | | | | | Reads the __doc__ for a command function and provides the first block of text for each command. Updated help_categories.py to demonstrate a multi-line comment block for a command.
| * Merge remote-tracking branch 'origin/master' into help_categoriesEric Lin2018-04-101-1/+1
| |\
| | * Preparing for 0.8.4 release0.8.4Kevin Van Brunt2018-04-101-1/+1
| | |
| * | Fixed imports since new categorization feature requires IterableTodd Leonhardt2018-04-091-1/+1
| | |
| * | Remove usage of optional type hinting which is not allowed in Python 2.7Todd Leonhardt2018-04-091-4/+6
| | |
| * | Merge branch 'master' into help_categoriesTodd Leonhardt2018-04-091-3/+3
| |\ \ | | |/
| * | Added a convenience function for tagging command categories.Eric Lin2018-04-091-0/+13
| | |
| * | Added ability to group commands by category when printing the help menu.Eric Lin2018-04-091-3/+20
| | | | | | | | | | | | Added example of multiple commands grouped by categories
* | | Updated version to 0.8.5Todd Leonhardt2018-04-101-1/+1
| | |
* | | Merge branch 'master' into delete_optparseTodd Leonhardt2018-04-091-3/+3
|\ \ \ | | |/ | |/|
| * | Swapped line order for comment clarityKevin Van Brunt2018-04-101-3/+3
| |/
* | Deleted optparse code which had been previously deprecated in 0.8.0 releaseTodd Leonhardt2018-04-091-187/+9
|/ | | | | Also: - Bumped version to 0.8.4
* Updated version number of release0.8.3Kevin Van Brunt2018-04-091-1/+1
|
* No longer expanding env vars since the shell will do thatKevin Van Brunt2018-04-061-2/+3
|
* Refactored functionKevin Van Brunt2018-04-031-6/+6
|
* Added padding to display matches for visual appealKevin Van Brunt2018-04-031-1/+31
|
* Don't try to load empty or non-existent startup scriptKevin Van Brunt2018-04-021-5/+7
|
* Added ability to query individual aliasKevin Van Brunt2018-04-021-7/+17
|