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
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
7921ef1282
Fixing Shell tests to use ConsoleInput.
2010-10-13 23:18:19 -04:00
mark_story
e816a49a6f
Moving ShellDispatcher::getInput() into Shell as a protected method.
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
cd8d29ef1c
Removing conceal, because its a stupid option.
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
b6602f1d0d
Converting more stderr() use into exceptions.
2010-10-13 23:18:19 -04:00
mark_story
749e9c19d5
Adding success style.
...
Adding some additional formatting to the default welcome method.
2010-10-13 23:18:19 -04:00
mark_story
9a6b04d5b3
Removing double header output and adding some pizazz to the command list.
2010-10-13 23:18:18 -04:00
mark_story
7719df72c2
Removing code from ShellDispatcher that is now in CommandList.
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
ce4fe64a61
Initial integration of ConsoleOutput into cake console tools.
2010-10-13 23:18:18 -04:00
mark_story
5c55c289f7
Adding support for uncoloured output for windows environments without
...
ansicon.
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
0a86b7f208
Moving the ShellDispatcher into is own file. This makes testing easier and will make app/console easier to create.
2010-10-13 23:18:17 -04:00
mark_story
079c55656b
Updating doc block for console error handler.
2010-10-13 23:18:17 -04:00
mark_story
f19e3d501c
Merge branch '1.3' into integration
...
Conflicts:
cake/libs/model/cake_schema.php
cake/libs/model/datasources/dbo_source.php
cake/libs/model/model.php
cake/libs/view/helpers/form.php
cake/libs/view/view.php
cake/libs/xml.php
cake/tests/cases/libs/model/model_delete.test.php
cake/tests/cases/libs/view/view.test.php
cake/tests/cases/libs/xml.test.php
2010-10-13 22:30:40 -04:00
mark_story
f847080cbf
Changing more php version strings.
2010-10-03 12:46:03 -04:00
José Lorenzo Rodríguez
9d35ea0cbc
Upgrading CodeCoverage repoting fo phpunit 3.5
2010-09-29 01:14:14 -04:30
José Lorenzo Rodríguez
45a407783e
Updating options help
2010-09-28 21:11:43 -04:30
mark_story
500550faef
Adding documentation note about AclShell and issues with zend.ze1_compatibilty. Fixes #987
2010-09-26 12:33:15 -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
608ea6df42
Making the console define a FULL_BASE_URL so tests run properly.
2010-09-24 23:30:01 -04:00
mark_story
f21161ef46
Merge branch '1.3' into 2.0. Had to fix a number of 1.3 -> 2.0
...
differences upon merging.
Conflicts:
app/config/core.php
cake/console/templates/skel/config/core.php
cake/libs/cache/file.php
cake/libs/cake_session.php
cake/libs/controller/components/email.php
cake/libs/i18n.php
cake/libs/view/pages/home.ctp
cake/tests/cases/libs/cache/memcache.test.php
cake/tests/cases/libs/model/model_write.test.php
2010-09-24 23:27:22 -04:00
mark_story
9e4c890082
Updating the schema command in the core.php files to reflect the correct command needed for 1.3. Fixes #1031
2010-09-23 23:12:20 -04:00
mark_story
e91fa68f8e
Making the set() functions use + instead of array_merge() so that numeric indices are properly preserved across multiple method calls. Fixes #1105
2010-09-18 00:13:03 -04:00
mark_story
e4d34b640b
Merge branch '2.0-exceptions' into 2.0
...
Conflicts:
cake/libs/error.php
cake/tests/cases/libs/controller/scaffold.test.php
cake/tests/cases/libs/error.test.php
2010-09-10 20:31:16 -04:00
mark_story
bdb3feb7fd
Adding stack trace to the console error handler. Updating tests.
...
Changing require to require_once so the test case for ConsoleErrorHandler doesn't blow up in cli.
2010-09-08 23:38:51 -04:00
mark_story
6e5e32bef5
Updating AclShell test to use AclComponent correctly.
2010-09-07 23:40:07 -04:00
Mark Story
d88da3d579
Merge branch '1.3' into 2.0
...
Conflicts:
cake/libs/configure.php
cake/libs/model/connection_manager.php
cake/libs/model/model.php
cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
cake/tests/cases/libs/view/helpers/text.test.php
2010-09-06 16:53:04 -04:00
Mark Story
b491414a51
Changing gif to png, so baked apps have the correct icon. Fixes #1081
2010-09-06 01:39:39 -04:00
Mark Story
2e46d2f5ca
Changing gif to png, so baked apps have the correct icon. Fixes #1081
2010-09-06 01:38:31 -04:00
Mark Story
8bd0f18a53
Adding a new line to the ConsoleErrorHandler
...
Refactoring ConsoleErrorHandler test to use dynamic mocks.
2010-09-05 11:22:39 -04:00
Mark Story
9fee81cda0
Updating ConsoleErrorHandler to use new exception names and method renames.
2010-09-05 11:10:48 -04:00
Mark Story
5c0fe1b16e
Applying patch from 'majna'. Adding plugin to the list of template variables exposed in the controller task. Test added Fixes #1077
2010-09-03 12:33:59 -04:00
Mark Story
a1e01e414b
Adding a tests for CakeExceptions and non CakeExceptions
2010-09-02 18:02:58 -04:00
Mark Story
a44b35311d
Integrating the ConsoleErrorHandler into the console environment.
2010-09-02 17:49:43 -04:00
Mark Story
60e44660c3
Moving ErrorHandler to ConsoleErrorHandler so it doesn't have classname conflicts.
...
Making the console use a subclass of ErrorHandler.
2010-09-02 17:49:00 -04:00
Mark Story
034aaa7462
Creating optional boot variable that informs Configure if it should bootstrap the app. Changing how ShellDispatcher checks for app existence it sets the $boot var now and reuses the framework bootstrap file instead of a second custom one.
2010-09-02 17:16:57 -04:00
Mark Story
ffa8b959e4
Changing classname and importing base class.
2010-09-02 16:47:06 -04:00