| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Changed examples to reflect that settable doesn't need to be updated before ↵ | Kevin Van Brunt | 2019-02-20 | 7 | -14/+25 |
| | | | | | calling init() | ||||
| * | Fixed examples | Kevin Van Brunt | 2019-02-08 | 2 | -3/+3 |
| | | |||||
| * | Fixed issue where calling exit() or quit() from a pyscript would close the ↵ | Kevin Van Brunt | 2019-02-06 | 1 | -2/+2 |
| | | | | | whole console | ||||
| * | Fixed comment | Kevin Van Brunt | 2019-02-06 | 1 | -1/+1 |
| | | |||||
| * | Added help summary and a separate label for commands and topics | Kevin Van Brunt | 2018-12-21 | 1 | -12/+33 |
| | | |||||
| * | Removed newlines | Kevin Van Brunt | 2018-12-21 | 1 | -3/+1 |
| | | |||||
| * | Refactored script to use app() | Kevin Van Brunt | 2018-12-21 | 1 | -32/+27 |
| | | |||||
| * | Updated documentation | Kevin Van Brunt | 2018-12-20 | 1 | -2/+2 |
| | | |||||
| * | Refactored script and made OS independent by removing rm calls | Kevin Van Brunt | 2018-12-20 | 1 | -26/+40 |
| | | |||||
| * | Added labels for each command help text | Kevin Van Brunt | 2018-12-20 | 1 | -2/+13 |
| | | |||||
| * | Fixing flake8 warning | Kevin Van Brunt | 2018-12-20 | 1 | -0/+1 |
| | | |||||
| * | Added new example script that saves help text to a file | Kevin Van Brunt | 2018-12-20 | 1 | -0/+67 |
| | | |||||
| * | Fix flake8 issues | Todd Leonhardt | 2018-12-06 | 14 | -69/+63 |
| | | | | | | | | | | | | | | | | | | | | | | | This commit contains a very large number of trivial changes in order to fix flake8 errors and warnings. Predominantly these are whitespace changes. Additionally, the build for Python 3.7 on TravisCI has been tweaked to fail if there are any flake8 errors using the following commandline: * flake8 . --count --ignore=E252 --max-complexity=31 --max-line-length=127 --show-source --statistics NOTE: In the future the max cyclomatic complexity should be lowered, but some improvements need to be made first. One flake8 error is being ignored entirely: * E252 missing whitespace around parameter equals * ignored because it doesn't correctly deal with default argument values after a type hint A few flake8 errors are being selectively ignored in certain files: * C901 fuction is too complex * ignored in argparse_completer.py because the complex code is an override of argparse complexity * E302 expected 2 blank lines after ... * ignored in all unit test files for convenience * F401 module imported but unused * ignored in cmd2/__init__.py because imports are for convenience of cmd2 developers and backwards compatibility * F821 undefined name * ignored in cmd2 script files which are intended to run only within cmd2 applications via pyscript where "app" and "cmd" are defined | ||||
| * | Fixed bug in example caused by a keyword argument being used with dict.get() | Kevin Van Brunt | 2018-11-30 | 1 | -1/+1 |
| | | |||||
| * | Undefined names: from colorama import Fore, Back | cclauss | 2018-11-18 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | __Fore__ and __Back__ are used on line 128 but they are never defined or imported. That means that they are _undefined names_ which have the potential to raise NameError at runtime. [flake8](http://flake8.pycqa.org) testing of https://github.com/python-cmd2/cmd2 on Python 3.7.1 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./examples/plumbum_colors.py:127:21: F821 undefined name 'Fore' color_off = Fore.RESET + Back.RESET ^ ./examples/plumbum_colors.py:127:34: F821 undefined name 'Back' color_off = Fore.RESET + Back.RESET ^ ``` | ||||
| * | Update docs with smart ANSI handling for ppaged | Ethan McCreadie | 2018-11-01 | 2 | -16/+18 |
| | | |||||
| * | Refactored filtering in path_complete to use a function | Kevin Van Brunt | 2018-10-26 | 1 | -1/+1 |
| | | |||||
| * | Added code to handle -- in argparse completer | Kevin Van Brunt | 2018-10-10 | 1 | -1/+1 |
| | | |||||
| * | Added warning to documentation about how help_foo won't be called for ↵ | Todd Leonhardt | 2018-10-06 | 2 | -6/+5 |
| | | | | | | | | command foo if it uses an argparse decorator Also: - Renamed argparse_example.py to decorator_example.py | ||||
| * | Added documentation stating that parsers passed to argparse decorators need ↵ | Todd Leonhardt | 2018-10-06 | 1 | -9/+17 |
| | | | | | | | | to be unique Also: - Modified table_display.py to demonstrate a workaround | ||||
| * | Moved main.py to exampels/hello_cmd2.py and added some comments | Todd Leonhardt | 2018-10-06 | 1 | -0/+16 |
| | | |||||
| * | Merge remote-tracking branch 'origin/master' into argparse_remainder | Eric Lin | 2018-10-06 | 4 | -28/+28 |
| |\ | |||||
| | * | Using sub-command instead of subcommand where possible to be consistent with ↵ | Kevin Van Brunt | 2018-10-05 | 4 | -28/+28 |
| | | | | | | | | | argparse | ||||
| * | | Fixed a few edge cases: | Eric Lin | 2018-10-06 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | - Once the argument list can match a positional and that positional is tagged with nargs=argparse.REMAINDER it will consume all tokens including flag tokens. AutoCompleter now correctly detects this case will no longer attempt to complete flag tokens - A single-character token that is a flag prefix doesn't count as a flag and is parsed as a value. AutoCompleter now correctly detects this case. | ||||
| * | | Added handling of nargs=argparse.REMAINDER in both AutoCompleter and ↵ | Eric Lin | 2018-10-06 | 1 | -1/+1 |
| |/ | | | | | | | | ArgparseFunctor Should correctly force all subsequent arguments to go to the REMAINDER argument once it is detected. Re-arranged the command generation in ArgparseFunctor to print flag arguments before positionals Also forces the remainder arguments to always be last. | ||||
| * | Made hooks.py executable | Todd Leonhardt | 2018-09-28 | 1 | -0/+0 |
| | | |||||
| * | Updated abbreviation example to use new cmd2 function to resolve command ↵ | Kevin Van Brunt | 2018-09-28 | 1 | -5/+5 |
| | | | | | functions | ||||
| * | Addressing code review comments | Kevin Van Brunt | 2018-09-28 | 1 | -1/+1 |
| | | |||||
| * | Updated a couple files in the examples directory due to changes in alias command | Todd Leonhardt | 2018-09-27 | 2 | -6/+5 |
| | | |||||
| * | Merged alert_printer stuff from master and resolved conflicts | Todd Leonhardt | 2018-09-25 | 1 | -0/+203 |
| |\ | |||||
| | * | Merge branch 'master' into alert_printer | Kevin Van Brunt | 2018-09-25 | 1 | -0/+38 |
| | |\ | |||||
| | * | | Added more examples and documentation | Kevin Van Brunt | 2018-09-25 | 1 | -2/+8 |
| | | | | |||||
| | * | | Merge branch 'master' into alert_printer | Todd Leonhardt | 2018-09-25 | 1 | -1/+1 |
| | |\ \ | |||||
| | * | | | Made async stuff public | Kevin Van Brunt | 2018-09-25 | 1 | -8/+8 |
| | | | | | |||||
| | * | | | Made demo more instructive | Kevin Van Brunt | 2018-09-23 | 1 | -92/+103 |
| | | | | | |||||
| | * | | | Added more alerts and updated documentation | Kevin Van Brunt | 2018-09-22 | 1 | -12/+39 |
| | | | | | |||||
| | * | | | Recreating the thread in preloop to support multiple calls of cmdloop | Kevin Van Brunt | 2018-09-22 | 1 | -1/+3 |
| | | | | | |||||
| | * | | | Updating prompt in example app | Kevin Van Brunt | 2018-09-21 | 1 | -7/+43 |
| | | | | | |||||
| | * | | | First version of async printing example | Kevin Van Brunt | 2018-09-21 | 1 | -0/+121 |
| | | | | | |||||
| * | | | | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-25 | 1 | -0/+38 |
| |\ \ \ \ | | |_|/ | |/| | | |||||
| | * | | | Merge branch 'master' into command_help_noflag | Kevin Van Brunt | 2018-09-25 | 1 | -1/+1 |
| | |\ \ \ | | | |/ | | |/| | |||||
| | * | | | Added the the ability to format help to the AutoCompleter to support ↵ | Eric Lin | 2018-09-23 | 1 | -0/+38 |
| | | |/ | |/| | | | | | | | sub-command specific help lookup. | ||||
| * | | | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-25 | 1 | -1/+1 |
| |\ \ \ | | |/ | |/| | |||||
| | * | | Removed a Python3-only comment from an example since Python 2 is no longer ↵ | Todd Leonhardt | 2018-09-25 | 1 | -1/+1 |
| | |/ | | | | | | | supported | ||||
| * | | Added optional color argument to poutput() for providing a color escape code ↵ | Todd Leonhardt | 2018-09-24 | 2 | -4/+20 |
| | | | | | | | | | | | | | | | | | to colorize the output with Also: - Added optional err_color and war_color arguments to perror() for providing color escape codes - Removed usage of deprecated colorize() method within the examples | ||||
| * | | Added plumbum_colors.py example of using plumbum.colors | Todd Leonhardt | 2018-09-23 | 1 | -0/+144 |
| | | | |||||
| * | | Merge branch 'master' into colorize | Todd Leonhardt | 2018-09-21 | 2 | -6/+6 |
| |\ \ | |/ | |||||
| | * | Removed remaining type hints in docstrings | Kevin Van Brunt | 2018-09-21 | 2 | -6/+6 |
| | | | |||||
| * | | Updated a couple example transcripts now that colors is no longer True/False | Todd Leonhardt | 2018-09-21 | 3 | -6/+4 |
| | | | | | | | | | | | Also: - Minor whitespace tweaks to new colors.py example | ||||
| * | | cmd2.Cmd.__init__ now initializes colorama and tells it to never strip ANSI ↵ | Todd Leonhardt | 2018-09-19 | 1 | -5/+6 |
| | | | | | | | | | | | | | | | | | codes since cmd2 deals with that Also: - Finished editing poutput(), ppaged(), and pfeedback() methods to strip ANSI color when appropriate - Changed attr.ib() factory usage so cmd2 is compatible with older versions of attrs | ||||
