mark_story
4d199cf8a8
Removing Shell::_loadDbConfig() and Shell::$DbConfig
...
They did not make sense in Shell as no other core shells even use these
properties/methods.
2010-10-13 23:18:22 -04:00
mark_story
0d522f3bd4
Changing ShellDispatcher to use --help and -h like the option parser does.
2010-10-13 23:18:22 -04:00
mark_story
7f5b5c4fbd
Adding exception for unknown option usage.
2010-10-13 23:18:21 -04:00
mark_story
d3c95bc2c4
Adding epilog and description to the generate help.
2010-10-13 23:18:21 -04:00
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
733394d584
Adding usage generation for options.
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
6f1dae208c
Adding method skeleton
2010-10-13 23:18:21 -04:00
mark_story
b392f300ba
Adding docs about how options work.
2010-10-13 23:18:20 -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
01a7fc70b7
Removing dead code.
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
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
mark_story
a8d4015f47
Updating bootstrap process in CLI to match the one in web.
...
Updating all_libs to use new file.
Updating error_handler test to run in cli.
Updating Controller so it imports required classes.
2010-08-30 22:59:10 -04:00
mark_story
dc67b9cacc
Moving all the exceptions into one file for the short term.
2010-08-28 00:08:35 -04:00
mark_story
c48c0d6295
Fixing issue where ViewTask would make empty view files for actions that did not have templates. Test case added. Fixes #1040
2010-08-23 21:49:30 -04:00
mark_story
4622ec44c2
Updating the skel and app test.php's to not make a global variable for the dispatcher. This dramatically improves the performance of the web test runner.
2010-08-16 23:33:07 -04:00
mark_story
f46241a6e7
Merge branch '2.0' into 2.0-helpers
2010-08-16 23:02:44 -04:00
mark_story
705e90bef7
Merge branch '1.3' into 2.0-merge
...
Conflicts:
cake/libs/cache/memcache.php
cake/libs/cake_session.php
cake/libs/model/behaviors/acl.php
cake/tests/cases/dispatcher.test.php
cake/tests/cases/libs/cake_test_fixture.test.php
cake/tests/cases/libs/model/behaviors/acl.test.php
cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
2010-08-15 23:09:02 -04:00
mark_story
aba97d0ab2
Applying patch from 'Mark Mitchell' to fix auto exiting of cake.bat. Fixes #992
2010-08-14 18:54:12 -04:00
mark_story
e0acd2131f
Fixing ShellDispatcher tests and making ShellDispatcher/Shell use TaskCollection to loadTasks.
2010-08-10 23:18:41 -04:00
mark_story
9804ed0cb3
Adding tests for loading plugin files.
2010-08-10 23:18:41 -04:00
mark_story
457f24d882
Adding TaskCollection, much like Helper and Component collection TaskCollection will be used to reduce global space pollution.
2010-08-10 23:18:41 -04:00
mark_story
d1028a7434
Applying patch from 'Mark Mitchell' to make cake.bat return the exit code of the called cake shell. Fixes #992
2010-08-10 23:12:55 -04:00
mark_story
f5bf4c5552
Changing config value name to more accurately represent what it does.
2010-07-27 22:27:43 -04:00
mark_story
5673ceb816
Updating core.php files with new session configuration.
2010-07-27 22:27:42 -04:00
mark_story
d38857095a
Merge branch '1.3' into 2.0
...
Conflicts:
cake/libs/model/model.php
cake/libs/validation.php
cake/libs/view/helpers/ajax.php
cake/tests/cases/libs/controller/components/session.test.php
2010-07-24 22:34:42 -04:00
mark_story
b5d7f6447f
Applying patch from 'asavoy'. Changing schema shell so that schema files generated for plugins have the classname of PluginSchema instead of AppSchema. Tests updated. Fixes #922
2010-07-23 21:46:06 -04:00
Scott Reeves
1774530222
Fixing typo in method description.
...
Signed-off-by: mark_story <mark@mark-story.com>
2010-07-19 23:14:28 -04:00
José Lorenzo Rodríguez Urdaneta
478cbd0a60
Adding test case for TestSuiteShell and refactoring to ease this testing
2010-07-13 21:28:21 -04:30
José Lorenzo Rodríguez Urdaneta
1c08d48652
Showing the available testcases when the testsuite shell is run with no params
2010-07-13 20:23:45 -04:30
José Lorenzo Rodríguez Urdaneta
ab6e3eecd9
Merge branch '2.0-phpunit' of github.com:cakephp/cakephp into 2.0-phpunit
...
Conflicts:
cake/console/libs/testsuite.php
2010-07-13 20:22:40 -04:30
José Lorenzo Rodríguez Urdaneta
7f7de13905
Improving the help screen in the testsuite shell
2010-07-13 20:20:19 -04:30
mark_story
fb3c3a6413
Removing non functional -coverage option from the help
...
Removing now dead code.
Adding support for documented -filter option.
2010-07-13 20:15:25 -04:00
José Lorenzo Rodríguez Urdaneta
01cfe32667
Adding a test case list to the test suite cli runner
2010-07-12 23:24:59 -04:30
José Lorenzo Rodríguez Urdaneta
d5c51b9b09
Fixing notices introduced in last commit
2010-07-07 23:03:24 -04:30
José Lorenzo Rodríguez Urdaneta
7b51feb89c
Fixing constant declaration as it was not consistent in web runner and cli runner
2010-07-07 22:58:48 -04:30
José Lorenzo Rodríguez
1b97af2e34
Making necessary changes to use the PHPUnit cli tool in testsuite shell
2010-07-07 00:11:06 -04:30
José Lorenzo Rodríguez
21ffdb0ab9
Starting to refactor testsuite shell to use the PHPUnit Cli runner
2010-07-07 00:07:22 -04:30
mark_story
b8085cddce
Removing PHP5 and all its uses.
2010-07-05 22:19:22 -04:00
mark_story
2fee0b5b63
Updating console bootstrap process.
2010-07-04 22:03:25 -04:00
mark_story
999a878d68
Removing closing ?> on bake templates so they match the rest of CakePHP.
2010-07-01 18:19:37 -04:00
mark_story
2020675078
Merge branch '1.3' into 2.0
...
Conflicts:
cake/dispatcher.php
cake/tests/cases/libs/controller/components/request_handler.test.php
2010-06-30 22:47:27 -04:00
mark_story
cd8dff362d
Merge branch '2.0-phpunit' into 2.0
...
Conflicts:
cake/libs/controller/components/email.php
cake/tests/cases/libs/cake_test_fixture.test.php
cake/tests/cases/libs/controller/components/email.test.php
2010-06-28 22:31:35 -04:00
mark_story
35d232f08f
Updating documentation in app/core.php to match historical values.
...
Updating skel/core.php to reflect current core.php.
2010-06-27 12:50:03 -04:00