| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Not necessary for the sake of the example, but might help some curious
individuals get a better feel for how the system works.
|
|
|
|
|
|
|
|
|
| |
Previously redirection information was lost by the postparsing hooks
add_whitespace_hook() and downcase_hook(). This was fine for this simple
shell, but sets a bad example for more complicated use cases.
To fix this, when parsing the new Statement object, include the
`post_command` attribute from the original Statement.
|
| |
|
| |
|
|
|
|
| |
minor import changes.
|
|
|
|
|
|
|
| |
Also:
- Added isort to Pipenv dev
- Added setup.cfg to make it easy to run flake8, doc8, and isort directly from the command line without using invoke
- Ran isort to sort includes
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
cmd2.Cmd.cmdloop() now returns self.exit_code which should be an integer
Also:
- Refactored examples to call sys.exit(app.cmdloop()) in their __main__
- Running transcript tests now sets the exit_code accordingly based on success/failure
- Updated CHANGELOG
- Updated README
- Updated Sphinx docs
- Added unit test for case when transcript test fails
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to instance attributes
The following are now instance attributes:
- allow_cli_args
- default_to_shell
- quit_on_sigint
The following class attribute was deleted due to lack of use:
- reserved_words
The following instance attribute was deleted due to lack of use:
- keywords
|
| |
|
|
|
|
| |
functions
|
| |
|
|
|