summaryrefslogtreecommitdiff
path: root/cmd2/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* Use setuptools_scm for version numberskotfu2018-07-291-2/+10
|
* Deprecated CmdResult helper class and promoted CommandResultTodd Leonhardt2018-06-231-1/+2
| | | | | | | | | | | | | | These classes are subtly different, particularly in terms of their truthiness. CmdResult - attributes: out, err, war - truthy: if err is falsy CommandResult - attributes: stdout, stderr, data - truthy: if err is falsy AND data is not None So CmdResult was oriented to provide essentially info, error, and warning messages to the user (typically as stirngs), whereas CommandResult is geared towards providing info and error messages to the user as strings in addition to data to the user in a command-specific format which is arbitrary other than it should never be None if the command succeeds.
* Working on improving type hintingTodd Leonhardt2018-06-091-0/+1
| | | | | Also: - Refactored perror() to remove a rarely used optional argument which was unecessary
* Add EmptyStatement exception to default importskotfu2018-05-231-1/+1
|
* Add Statement to default importkotfu2018-05-151-1/+1
|
* Extract AddSubmenu() into it’s own modulekotfu2018-05-061-1/+1
|
* Add default imports back inkotfu2018-05-061-0/+2
|
* Addressed comments.Eric Lin2018-05-021-2/+0
|
* Merge remote-tracking branch 'origin/master' into bash_completionEric Lin2018-04-271-18/+0
|\ | | | | | | Updated argcomplete_bridge to use new constants/utils.
* | Removed the expensive imports from cmd2/__init__.pyEric Lin2018-04-251-2/+2
| | | | | | | | | | | | | | Added some shared definitions to cmd2/__init__.py -> maybe there's a better place for these? Figured out how to trick bash into showing argument hints. It's a bit weird. Updated all of the tests and examples to import cmd2 resources from their new location without the automatic imports in cmd2/__init__.py For #369
* | Initial customization of CompletionFinderEric Lin2018-04-241-0/+17
|/
* Cleaned up __init__.pyTodd Leonhardt2018-04-171-5/+2
| | | | | Removed things which were only needed for unit tests from __init__.py - Converted to importing from cmd2.cmd2.<foo> within the relevant unit tests
* Fix unit tests on package branchTodd Leonhardt2018-04-171-3/+3
|
* Most of the unit tests fixed.kotfu2018-04-161-1/+3
|
* Basic structure for cmd2 as a packagekotfu2018-04-161-0/+6
|
* Revert "Basic structure for cmd2 as a package"kotfu2018-04-161-6/+0
| | | | This reverts commit 4a3d01b679c5db7f6cb670ca981a953eb3b98dc5.
* Basic structure for cmd2 as a packagekotfu2018-04-161-0/+6
Still have a fair amount of work to do to get this sorted.