| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| | |
Added a unit test for custom intro when calling cmdloop()
|
| |/
|
|
| |
Also updated CHANGES.md
|
| |\
| |
| | |
Added a CODEOWNERS file to automatically nominate code reviewers for PRs
|
| |/
|
|
|
|
| |
requests
Also added some unit tests related to when default_to_shell is True
|
| |\
| |
| | |
Added a few more unit tests
|
| |/ |
|
| |\
| |
| | |
Remove ugly file hack code which is no longer necessary
|
| |/
|
|
| |
compatibility shim
|
| |\
| |
| | |
Added an eos (end of script) hidden command and load now populates the cmdqueue
|
| | |
| |
| |
| |
| |
| | |
OS-default
This fixes a unit test bug where on Windows it was trying to load a utf-8 file as some other encoding starting with "cp".
|
| |/
|
|
|
|
| |
The load command no longer spawns a nested main loop using _cmdloop(). It now simply adds commands to the cmdqueue. And after adding all commands in the script file, it adds the eos command.
The eos command simply pops the most recent script directory from the list of script directories.
|
| |\
| |
| | |
Removed some extra newlines from error messages in load commands
|
| |/
|
|
| |
do__relative_load()
|
| |\
| |
| | |
Added unit test
|
| |/ |
|
| |\
| |
| | |
Fix a bug in a unit test which can happen in atypical circumstances
|
| |/ |
|
| |\
| |
| | |
Fix a typo: unitest -> unittest
|
| |/ |
|
| | |
|
| | |
|
| |\
| |
| | |
Add unit test to verify exclusion of commands from the history
|
| |/
|
|
| |
working as intended
|
| |\
| |
| | |
Fixed a few bugs and examples
|
| | |
| |
| |
| | |
Updated to reflect that the default value of abbrev is now False.
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug fixes:
- case_insensitive is no longer a runtime-settable parameter, but it was still listed as such
- Fixed a recursive loop bug when abbreviated commands are enabled and it could get stuck in the editor forever
- Added additional command abbreviations to the "exclude from history" list
- Fixed argparse_example.py and pirate.py examples
Other changes:
- Organized all attributes used to configure the ParserManager into a single location
- Set the default value of "abbrev" to False (which controls whether or not abbreviated commands are allowed)
- With good tab-completion of command names, using abbreviated commands isn't a particularly useful feature
- And it can create problems
|
| | |
|
| | |
|
| |\
| |
| | |
Removed pause command
|
| |/
|
|
|
|
| |
It was pretty useless, it just printed a message and sat there and waited for the user to hit enter.
It didn't feel like it belonged in a top-level framework. If a particular application wants this functionality, it is a 2 line change to add it back.
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
Also:
- Updated pythong_scripting.py example to show how to colorize text
- Updated contributing.md to show how to run code coverage in parallel using python-xdist and -nauto
- Updated contributing.md to talk more about looking at unit test results within the PR
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
PyPI changes:
- Changed overall cmd2 description
- Fixed pip install warning due to unknown "docs_require" distribution option
- No longer include examples and tests in PyPI *.tar.gz package
GitHub README.md changes:
- Changed top-level cmd2 description
- Improved labels on build badges so it says "unix build: passing" and "windows build: passing" instead of two "build passing" badges right next to each other
- Reorganized layout a little to hopefully do a better job explaining what cmd2 is earlier
|
| |\
| |
| | |
pytest-cov and pytest-xdist now play nicely together
|
| | | |
|
| |/
|
|
| |
pytest-xdist to play nicely together
|
| |\
| |
| | |
Speedup tests
|
| | | |
|
| | |
| |
| |
| |
| | |
It works fine for me on my Mac, but it doesn't seem to work right on either TravisCI or AppVeyor.
It appears to calculate the code coverage incorrectly when using pytest-xdist.
|
| | |
| |
| |
| | |
analysis
|
| | |
| |
| |
| | |
code coverage
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that we have a lot of unit tests and are running code coverage analysis,
our unit tests take a long time to run.
Changes include ...
tox:
- Install pytest-xdist to parallelize unit tests
- Only run code coverage analysis on Python 2.7 and 3.6
- Don't run examples/example.py anymore, just run the unit tests
TravisCI:
- Stop building on Python 3.7-dev since that won't be released for some time
AppVeyor:
- Stop building on Python 3.4 since that isn't as important and is covered by Travis
|
| |\
| |
| | |
Fixed bugs, removed dead code, and added unit tests
|
| |/
|
|
|
|
|
|
|
|
|
| |
Fixed a bug where CmdResult named tuple Truthiness wasn't working in Python 2
Removed unused cmd2.History.search() method.
Added unit tests for:
- History class
- cast() function
- CmdResult namedtuple
|
| |\
| |
| | |
Added a bunch of unit tests
|