| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | | Merge branch 'master' into quoted_completion | Todd Leonhardt | 2018-03-18 | 1 | -2/+2 | |
| |\ \ | |/ | ||||||
| | * | Fixed indexes in unit tests | Kevin Van Brunt | 2018-03-18 | 1 | -3/+3 | |
| | | | ||||||
| * | | Backing up work | Kevin Van Brunt | 2018-03-18 | 1 | -9/+18 | |
| | | | ||||||
| * | | First version of allowing quotes in tab completion | Kevin Van Brunt | 2018-03-17 | 1 | -8/+8 | |
| |/ | ||||||
| * | Changing how commands are parsed if default_to_shell is True | Kevin Van Brunt | 2018-03-16 | 1 | -3/+6 | |
| | | ||||||
| * | Skip test_default_to_shell_completion unit test on Windows | Todd Leonhardt | 2018-03-16 | 1 | -6/+3 | |
| | | | | | | | | | Python's built-in cmd module (and cmd2 which inherits from it) parses the command line and has relatively strict rules when parsing the beginning of the line looking for a "command". This command can must consist of ASCII letters and digits. The parsing logic applies prior to the default_to_shell flag attempting to run this "command" as a shell command. A problem occurs on Windows in that nearly all executables have a "." in their name. cmd/cmd2 will view everything before the "." as being the command. On Windows, I would strongly encourage the use of "!" or "shell" to run shell commands and would recommend against using the "default_to_shell" flag unless you are working within the Windows Subsystem for Linux (WSL). | |||||
| * | Added unit test for completing when default_to_shell is True | Kevin Van Brunt | 2018-03-16 | 1 | -0/+39 | |
| | | ||||||
| * | Added unit tests for alias, unalias, and basic_complete | Kevin Van Brunt | 2018-03-16 | 1 | -2/+37 | |
| | | ||||||
| * | More unit test fixes | Kevin Van Brunt | 2018-03-16 | 1 | -3/+9 | |
| | | ||||||
| * | No longer need to manually specify subcommand names for tab completion | Kevin Van Brunt | 2018-03-14 | 1 | -4/+1 | |
| | | ||||||
| * | missing args in calling completenames | Alberto Sartori | 2018-03-12 | 1 | -21/+265 | |
| | | ||||||
| * | Added a few unit tests | Todd Leonhardt | 2018-03-03 | 1 | -0/+28 | |
| | | ||||||
| * | Removed support for case-insensitive command parsing | Todd Leonhardt | 2018-03-02 | 1 | -11/+2 | |
| | | ||||||
| * | Fixed slicing bug | Kevin Van Brunt | 2018-03-02 | 1 | -1/+1 | |
| | | ||||||
| * | Fixed some parsing bugs and added more unit tests | Kevin Van Brunt | 2018-03-02 | 1 | -6/+59 | |
| | | ||||||
| * | Added tab completion example | Kevin Van Brunt | 2018-03-02 | 1 | -7/+7 | |
| | | ||||||
| * | Added unit tests for index based completion | Kevin Van Brunt | 2018-03-02 | 1 | -4/+48 | |
| | | ||||||
| * | Added unit tests for flag based completion | Kevin Van Brunt | 2018-03-02 | 1 | -9/+61 | |
| | | ||||||
| * | Sorting all completion results. Added unit tests for help command. | Kevin Van Brunt | 2018-03-02 | 1 | -5/+35 | |
| | | ||||||
| * | Fixed unit tests that call complete | Kevin Van Brunt | 2018-03-02 | 1 | -10/+135 | |
| | | ||||||
| * | Corrected tab completion of subcommands. | Kevin Van Brunt | 2018-03-02 | 1 | -46/+0 | |
| | | ||||||
| * | Fixed typo | Kevin Van Brunt | 2018-03-01 | 1 | -1/+1 | |
| | | ||||||
| * | Fixed more unit tests | Kevin Van Brunt | 2018-03-01 | 1 | -19/+16 | |
| | | ||||||
| * | Fixed unit tests | Kevin Van Brunt | 2018-03-01 | 1 | -10/+11 | |
| | | ||||||
| * | Removed an assertion which will fail if your home directory is empty | kotfu | 2018-02-20 | 1 | -5/+0 | |
| | | | | | NixOS build and packaging system builds with a fake $HOME which has no contents. This assertion will fail in those cases, and doesn’t really test the completion code anyway. | |||||
| * | help command temporarily redirects sys.stdout and sys.stderr to self.stdout ↵ | Todd Leonhardt | 2018-01-22 | 1 | -3/+3 | |
| | | | | | | | | | for argparse commands In order to make "help" behave more consistently for decorated and undecorated commands, argparse output is temporarily redirected to self.stdout. So doing "help history" is similar to "help load". However, when using the "-h" with argparse commands without using the "help" command, the output from argparse isn't redirected to self.stdout. Fixing this would be rather difficult and would essentially involve creating a pyparsing rule to detect it at the parser level. | |||||
| * | Renamed @with_argument_parser decorator to @with_argparser | Todd Leonhardt | 2018-01-21 | 1 | -5/+5 | |
| | | | | | | Also: - Reanamed foo and bar subcommand methods to base_foo and base_bar | |||||
| * | Added unit tests for newly-overridden complete() method | Todd Leonhardt | 2018-01-20 | 1 | -0/+120 | |
| | | | | | Also added a section on Sub-commands to the documentation. | |||||
| * | Added unit tests for sub-commands | Todd Leonhardt | 2018-01-20 | 1 | -0/+97 | |
| | | ||||||
| * | Added support for case-insensitive tab-completion of cmd2 command names | Todd Leonhardt | 2017-07-13 | 1 | -0/+22 | |
| | | ||||||
| * | Avoid conflict the `eg` tool from go-tools | Felix Yan | 2017-07-10 | 1 | -1/+1 | |
| | | | | | | With go-tools installed there is an `eg` command in system search path. Let's add an additional character to avoid the test failure. | |||||
| * | Fix a bug in a unit test which can happen in atypical circumstances | Todd Leonhardt | 2017-07-05 | 1 | -1/+1 | |
| | | ||||||
| * | Don't run an assert on Windows since it is failing on AppVeyor | Todd Leonhardt | 2017-07-01 | 1 | -2/+6 | |
| | | | | | It passes on my Windows 10 VM, but fails on AppVeyor. But manual testing reveals the feature is working. | |||||
| * | Attempt at fixing failing Windows unit test | Todd Leonhardt | 2017-07-01 | 1 | -2/+8 | |
| | | | | | Windows doesn't have an "ls" command by default ... | |||||
| * | Added some more tests for path completion and shell command completion | Todd Leonhardt | 2017-07-01 | 1 | -30/+130 | |
| | | | | | | | | Also: - Added a test for do_pause - Cleaned up a bunch of magic numbers from existing test for shell and path command completion | |||||
| * | Multiple changes | Todd Leonhardt | 2017-06-28 | 1 | -1/+1 | |
| | | | | | | | | | - Disabled TravisCI macOS builds because they are heavily backlogged - Removed a file which should never have been committed - Updated Sphinx docs to relect that the default_file_name settable parameter no longer exists - Fixed comment in a unit test - Fixed a unit test to use os.path.sep for cross-platform compatibility | |||||
| * | Completely removed use of self.default_file_name | Todd Leonhardt | 2017-06-28 | 1 | -1/+1 | |
| | | | | | | | | | Load and relative load now require a file path Edit will use a temporary file by default and delete it when done Save will use a temporary file by default and inform the user what it is Also changed the default value for autorun_on_edit to False so that it can safely be used as an actual file editor. | |||||
| * | Added pyscript unit test and attempt to fix a path completion test on Windows | Todd Leonhardt | 2017-06-24 | 1 | -1/+29 | |
| | | ||||||
| * | Added some path completion unit tests | Todd Leonhardt | 2017-06-24 | 1 | -1/+69 | |
| | | | | | Also added some command completion unit tests for cases where there are no matches | |||||
| * | Trying to fix shell command completion unit tests on Windows. | Todd Leonhardt | 2017-06-15 | 1 | -10/+10 | |
| | | | | | pyreadline won't engage the completer when just "!calc" is typed, need "! calc" or "shell calc". Basically it needs a space after to recognize it as a command and route it to the correct completer method. | |||||
| * | Added some tests for command completion, help completion, and shell command ↵ | Todd Leonhardt | 2017-06-15 | 1 | -0/+97 | |
| completion TODO: Still need to add a bunch of tests for path competion and more tests for all of the above mentioned completion cases. | ||||||
