mark_story
501e63e45d
Adding argument help generation in the long help and usage string.
...
Fixing output of option help, formatting was calculated in 2 places.
2010-10-13 23:18:21 -04:00
mark_story
09adc38b6c
Doing some fixes as the longest option + a short would cause incorrect formatting.
2010-10-13 23:18:21 -04:00
mark_story
0eb68226ce
Adding ConsoleOptionParser to the AllShells test.
2010-10-13 23:18:21 -04:00
mark_story
cea6cef727
Adding smart defaults for verbose, quiet, and help options.
...
Adding help formatting for options.
2010-10-13 23:18:21 -04:00
mark_story
a3259743f7
Making error output style have an underline.
...
Adding a comment style which has blue text.
2010-10-13 23:18:21 -04:00
mark_story
f5ad54e97e
Adding required argument checking.
2010-10-13 23:18:21 -04:00
mark_story
505e59ac66
Adding support for boolean options.
2010-10-13 23:18:21 -04:00
mark_story
3e402e2dfb
Adding support for positional arguments.
...
Adding tests and support for positional arguments. Renaming description
key to help as its shorter.
2010-10-13 23:18:21 -04:00
mark_story
3b9921a390
Adding support for -abc style combination of short options.
...
Renaming shortcut to short as its shorter :)
2010-10-13 23:18:20 -04:00
mark_story
07bda824f0
Adding test for parsing multiple options.
2010-10-13 23:18:20 -04:00
mark_story
2c2c9a38d2
Removing required, and type from option flag as they didn't really make sense to include at this point. Adding support for --foo=bar type parameters.
2010-10-13 23:18:20 -04:00
mark_story
7b1b835bc1
Adding very basic implementation for parsing long and short options.
2010-10-13 23:18:20 -04:00
mark_story
d5d9adb92b
Starting to implement options and option parsing.
2010-10-13 23:18:20 -04:00
mark_story
694537933e
Adding description() and epilog() to ConsoleOptionParser. Starting to build out addOption.
2010-10-13 23:18:20 -04:00
mark_story
d914c0aaea
Adding ConsoleOptionParser and its test.
2010-10-13 23:18:20 -04:00
mark_story
41db1485aa
Updating test cases to use new objects.
...
Preventing ConsoleOutput and ConsoleInput constructors from being run as it causes too many files open exceptions.
2010-10-13 23:18:20 -04:00
mark_story
73ad3043a2
Fixing more console tests to use new internals.
...
Making TaskCollection pass the stdout, stdin, stderr to Tasks they create. This allows for more flexible dependency injection and makes testing easier.
2010-10-13 23:18:20 -04:00
mark_story
a3023430c8
Updating test cases to use new Shell internals.
...
Cleaning up some mocks.
2010-10-13 23:18:19 -04:00
mark_story
7921ef1282
Fixing Shell tests to use ConsoleInput.
2010-10-13 23:18:19 -04:00
mark_story
67f03afa02
Moving ConsoleInput to the correct directory.
2010-10-13 23:18:19 -04:00
mark_story
d64078db2d
Adding ConsoleInput for reading stdin.
2010-10-13 23:18:19 -04:00
mark_story
76c6decb52
Updating tests for Shell so they pass with the changes in the Shell internals.
2010-10-13 23:18:19 -04:00
mark_story
131433739e
Removing dead test stubs and test methods.
...
Moving clear() into Shell, it should be a shell method.
Changing shell methods to use ConsoleOutput objects, instead of methods on Dispatcher.
2010-10-13 23:18:19 -04:00
mark_story
a55098b00b
Making TaskCollection require a Shell instead of a ShellDispatcher.
...
This will help reduce the coupling between ShellDispatcher and other objects.
Since ShellDispatcher never directly uses or interacts with TaskCollection, it doesn't make much sense for it to have one. Instead shells will either get their own, or be passed one in.
2010-10-13 23:18:19 -04:00
mark_story
b11f2bfb1f
Adding ConsoleOutput to the AllShells group.
2010-10-13 23:18:18 -04:00
mark_story
02c4e00556
Starting to move command list out to a separate class so ShellDispatcher can stop having stderr/stdout connections.
2010-10-13 23:18:18 -04:00
mark_story
317e32f07b
Making ShellDispatcher use exceptions instead of returning false and doing other goofy things.
...
Adding MissingShellMethodException, MissingShellClassException and MissingShellFileException for use with ShellDispatcher.
Removing duplicated tests, and refactoring them into separate tests with expected exceptions.
2010-10-13 23:18:18 -04:00
mark_story
ffbb4e6b45
Integrating ConsoleOutput with ConsoleErrorHandler.
...
Updating test cases to match new output.
2010-10-13 23:18:18 -04:00
mark_story
90d5c12b3e
Fixing issues with background colours, and adding tests for options.
2010-10-13 23:18:18 -04:00
mark_story
d5b5fbee3b
Adding formatting methods for coloured output.
2010-10-13 23:18:18 -04:00
mark_story
aec1770abc
Adding style format manipulation methods.
2010-10-13 23:18:18 -04:00
mark_story
7dea9b0dbd
Starting to refactor console output into ConsoleOutput.
2010-10-13 23:18:18 -04:00
mark_story
3d65b68f1d
Renaming cake.test
...
Updating AllShells suite.
2010-10-13 23:18:17 -04:00
mark_story
9b8ce2d7fa
Updating includes for shell + task includes to point at the new file.
2010-10-13 23:18:17 -04:00
mark_story
3ab77017ae
Fixing OpenTest license mentions to use MIT License
...
Fixing PHP versions 4 and 5 to only be PHP5.
2010-10-03 12:31:21 -04:00
mark_story
b908365f9d
Changing the @license tag on test files, as tests can now be MIT like
...
the rest of CakePHP.
2010-10-03 12:27:27 -04:00
mark_story
92b57d81ee
Moving common setup and teardown functionality in to CakeTestCase.
...
Removing repeated setup/teardown logic from test cases.
Switching tests to use setup/teardown instead of startTest/endTest.
2010-09-25 21:36:49 -04:00
mark_story
714d8298c4
Fixing all tasks include.
...
Removing drop table queries that cause other tests to fail.
2010-09-25 01:25:42 -04:00
mark_story
cd7bc3ff6b
Removing disabling of tests from last commit.
...
Using assertContains instead of assertPattern as its easier to read.
2010-09-25 00:56:46 -04:00
mark_story
d8b39a3818
Changing startTest and endTest to setup and teardown.
...
Adding an App::build() to reset paths.
2010-09-25 00:47:32 -04:00
mark_story
8e6277c9d1
Updating schema shell test so it doesn't fail in groups.
...
Updating suites to use new method.
2010-09-25 00:13:37 -04:00
mark_story
6124eb6f7a
Moving All Tasks suite.
2010-09-25 00:13:06 -04:00
mark_story
ca167d5da2
Changing schema test to not alter the table and break other tests.
2010-09-24 23:30:03 -04:00
mark_story
3e6b65557b
removing old file.
2010-09-24 23:30:02 -04:00
mark_story
4e5ebc5c0f
Renaming all bake tasks to all tasks.
...
Updating all tests.
2010-09-24 23:30:02 -04:00
mark_story
94d738e834
Fixing failing tests and group test situational fails in console tests. Adding console tests to all tests.
2010-09-24 23:30:02 -04:00
mark_story
0bb23095f3
Making schema shell test more robust by deleting files it makes in teardown().
2010-09-24 23:30:02 -04:00
mark_story
309d08d4ef
Mocking out clear() on all the shell tests as it wreaks havoc on the CLI runner.
2010-09-24 23:30:02 -04:00
José Lorenzo Rodríguez
d45788e14f
Changing order of test run in AllShells group to avoid errors
2010-09-24 23:30:02 -04:00
José Lorenzo Rodríguez
5c3b4cfcc4
Removing all uses of the test_suite connection in the test cases
2010-09-24 23:30:01 -04:00