| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Added example showing how to display tabular data in a cmd2 application.
Also:
- Updated CHANGELOG with data on all PRs since last release
- Bumped version to 0.8.2 in preparation for next release
|
| |
|
|
|
| |
Changed "built-in" instead of "build-in" and fixed accidental capitalization of a letter.
|
|
|
|
|
|
|
| |
Aslo:
- Added some documentation for ppaged()
- Updated CHANGELOG
- Added line about ppaged() in README
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The documentation didn't make it very clear that the poutput() method should be used for generating output from cmd2 commands. This PR attempts to fix that.
This closes #275.
|
|
|
|
|
|
| |
Added pexpect to modules required for running unit tests.
This opens the door for carefully crafted complex unit tests to verify intricate behavior. Tests like this are somewhat painful to write and slow to execute. However, they can enable testing complicated interactive behavior that we otherwise probably would not be able to test.
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Including an example and info in the Sphinx docs
Also:
- Created CHANGELOG entry for 0.8.1 release
- Added info to README about new sub-menu feature
- Bumped version to 0.8.1
TODO:
- Added a unit test for the persistent readline history feature
|
|
|
|
|
|
|
|
| |
Improved the documentation related to how to use the argparse decorators.
Also:
- Fixed a comment in cmd2.py which referred to the old decorator before the rename
- Fixed README.md which had the old decorator name in it prior to the rename
|
| |
|
|
|
|
| |
dependency on contextlib2
|
|
|
|
|
| |
Also:
- Reanamed foo and bar subcommand methods to base_foo and base_bar
|
|
|
|
| |
Also added a section on Sub-commands to the documentation.
|
|
|
|
| |
Also bumped version to 0.8.0.
|
|
|
|
|
|
| |
I eliminated a few "narg=1" configurations so that a single str value is returned instead of a List[str].
I also reworded some documentation which was no longer correct after the last commit which made "history command" have the same help text as "command -h" when using one of the two argparse decorators.
|
|
|
|
| |
Removed usage of and reference to attributes and commands which have now been removed.
|
|
|
|
| |
@options optparse-based decorator
|
|
|
|
| |
Also added another @with_argparser_and_list decorator that uses argparse.parse_known_args to pass two arguments to a command: both the argparse output and a list of unknown/unmatched args.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
There are a couple unit test failures with Python 3.7-dev that we will need to look into at some point, so I disabled that build for now.
Updated all documentation to reflect that cmd2 is support on Python 2.7 and 3.4+.
Official support for Python 3.3 has been abandoned due to no longer having support to test on that platform on Travis CI.
|
| | |
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
attribute before calling super class __init__
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Also included a number of minor maintenance updates:
- Bumped version to 0.7.8 in preparation for upcoming release
- Updated Readme.md to add link to slides from recent Florida PyCon talk about cmd2
- Updated documentation on integrating cmd2 with other event loops to use newer runcmds_plus_hooks() method instead of legacy onecmds_plus_hooks method which doesn't properly deal with load commands
- Deleted old files which were used to prepare for a PyCon 2010 presentation
- Updated ChangeLog regarding this bug fix
|
|/ |
|
|
|
|
|
|
|
| |
info on readthedocs
I can build the docs locally and it works fine, but the autodoc part of Sphinx was failing on readthedocs
- and it was failing due to pyperclip not being present
|
|
|
|
|
|
|
| |
Also:
- Added arg_print.py example to demonstrate this
- Bumped version to 0.7.8a
- Updated CHANGELOG
|
| |
|
|
|
|
|
|
| |
regexes
Also bumped version from 0.7.7a to 0.7.7 in preparation for eventual next release.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This is to help distinguish latest code in GitHub from a version installed via pip from PyPI
|
|
|
|
|
|
| |
Modified implementation of poutput() to accept an optional "end" argument which can change the ending to something other than a newline or simply suppress adding a newline. Also added a try/except to catch BrokenPipeError exceptions which can occupoutputr if the subprocess output is being piped to closes before the command piping output to it is finished.
Updated install docs to note that when using Python 2.7, the subprocess32 module should also be installed.
|