Commit graph

510 commits

Author SHA1 Message Date
mark_story
6c8c7ca4a5 Turning __get() back into methods. There were so few properties being accessed that it didn't make sense to have __get(), over a handful of methods.
Tests updated.
2010-11-12 23:57:55 -05:00
mark_story
f9b7cbcb96 Making ConsoleOptionParser allow subclasses of the option, argument and subcommand classes to be supplied as arguments to the builder methods. Adding tests. 2010-11-12 23:52:33 -05:00
mark_story
faa23e8d51 Updating tests to reflect changes in bake templates. 2010-11-12 23:22:48 -05:00
mark_story
18bb5f6b8b Removing =& operators for construction of objects. 2010-11-12 23:05:44 -05:00
Jeremy Harris
cad6fc7a17 Force console output tests to output as color 2010-11-07 15:41:40 -08:00
mark_story
bff711e2dc Merge branch '2.0-console' into 2.0
Conflicts:
	cake/console/shells/acl.php
	cake/tests/cases/console/libs/tasks/plugin.test.php
2010-11-02 23:49:19 -04:00
mark_story
c9ca3c3785 Fixing path constants in DbConfig and FixtureTask to be more consistent between web and cli. 2010-11-02 23:25:36 -04:00
mark_story
6d54202c4c Adding another group test case file for all the console tests at once. 2010-11-02 23:15:33 -04:00
Mark Story
08e7bcb7ab Merge branch '1.3' into integration
Conflicts:
	app/config/core.php
	cake/console/libs/acl.php
	cake/console/templates/skel/config/core.php
	cake/console/templates/skel/webroot/test.php
	cake/dispatcher.php
	cake/libs/view/errors/missing_action.ctp
	cake/libs/view/helpers/form.php
	cake/tests/cases/libs/cache/memcache.test.php
	cake/tests/cases/libs/controller/controller.test.php
	cake/tests/cases/libs/log/file_log.test.php
	cake/tests/cases/libs/model/cake_schema.test.php
	cake/tests/cases/libs/router.test.php
	cake/tests/cases/libs/view/helpers/ajax.test.php
	cake/tests/groups/bake.group.php
	cake/tests/groups/behaviors.group.php
	cake/tests/groups/i18n.group.php
	cake/tests/groups/javascript.group.php
	cake/tests/lib/reporter/cake_cli_reporter.php
2010-10-31 21:56:59 -04:00
mark_story
fff8279c2b Using patch from 'wals' to add generic exclude option to the ExtractTask. Allows you to exclude path segments from the generated PO files.
Fixes #1138
2010-10-29 00:40:04 -04:00
mark_story
558bd7e3c2 Adding a --sort param to view the command_list sorted in a different way.
Test cases added.
Fixes #574
2010-10-26 22:34:27 -04:00
Graham Weldon
d3e0ddbb0e Update copyright years. 2010-10-25 07:58:22 +11:00
mark_story
6f29519f73 Making shells attach args and params by reference.
Adding test.
2010-10-24 15:47:07 -04:00
mark_story
c169de60e2 Updating tasks to not take ShellDispatcher as a parameter. 2010-10-24 15:27:04 -04:00
mark_story
5edb277111 Updating shells and shell tests for changes in __construct. 2010-10-24 15:11:30 -04:00
mark_story
ba17e2c9a0 Removing ShellDispatcher as a constructor argument for Shell.
Updating the AclShell test case.
2010-10-24 14:55:16 -04:00
mark_story
a72d6da9c3 Making plugin schema tests less likely to stomp on tables they shouldn't be changing. 2010-10-23 00:54:39 -04:00
mark_story
cf9166a689 Starting to remove Dispatch->params in favor of the constants ShellDispatcher makes, this will make removing the dependency from Shell much easier. 2010-10-23 00:11:31 -04:00
mark_story
68e176b515 Adding tests for plain output. 2010-10-22 23:32:01 -04:00
mark_story
a5dd06b54c Adding raw output to xml help generation. 2010-10-22 23:30:35 -04:00
mark_story
0be2208429 Adding a few new constants and a new method to control colouring of output. Added raw mode for outputting things like XML. 2010-10-22 23:30:08 -04:00
mark_story
c3b70dccb3 Fixing issue where a missing style would consume a tag on the xml output. 2010-10-20 23:40:05 -04:00
mark_story
d126f27278 Doing a bunch of refactoring to the CommandList shell.
Adding XML output to the command list shell.
2010-10-19 23:21:24 -04:00
mark_story
8f9adc7b15 Adding return of xml object to xml() method. 2010-10-19 22:47:07 -04:00
mark_story
ad62e0e3af Adding xml output to HelpFormatter. 2010-10-19 22:44:46 -04:00
mark_story
52a494402b Moving tests over to the HelpFormatter. 2010-10-19 21:40:27 -04:00
mark_story
1954c7c350 Moving tests around and starting to build out HelpFormatter for generating both text and xml help.
Xml help in consoles is great for IDE consumption.
2010-10-18 23:38:14 -04:00
mark_story
6291f1b1d1 Fixing issues with schema shell test when run in certain group combinations. 2010-10-18 23:26:50 -04:00
mark_story
6900f470ad Moving code from BakeShell to BakeTask.
Adding a base execute method to contain common code shared amongst all the bake tasks.
Updating test cases as $name attributes value has changed.
2010-10-18 23:09:23 -04:00
mark_story
6f29441ff9 Adding a blank line after the epilog on generated help. Makes for slightly more readable output. 2010-10-18 22:37:57 -04:00
mark_story
df55c08133 Fixing typo.
Fixing bad import which caused fails when running tests from the webrunner.
2010-10-17 23:43:12 -04:00
mark_story
01a20f61f1 Adding omitted test. 2010-10-17 23:40:15 -04:00
mark_story
5eb8c8fbcf Adding a test and trimming whitespace. 2010-10-17 23:35:45 -04:00
mark_story
529527a722 Removing ability of plugin task to pass through to a few but not all parts of bake.
Adding OptionParser definition.
2010-10-17 23:09:30 -04:00
mark_story
6a9ca7f54a Adding a test to DbConfigTask. 2010-10-17 22:48:24 -04:00
mark_story
ae9403601e Making the project task correctly replace the __CAKE_PATH__ constant when creating new projects. 2010-10-17 22:38:32 -04:00
mark_story
e807cc0eca Removing a bunch of dead properties from ShellDispatcher and Shell.
They are no longer needed/used.
Moving Shell back to console/shells so App::import() can easily find it.
2010-10-17 21:04:14 -04:00
mark_story
53a1663b96 Adding console dir to skel.
Updating project task to test for directories and files in a more readable way.
2010-10-17 19:01:44 -04:00
mark_story
0e61b34bcd Fixing bad include in AllTasks suite. 2010-10-17 17:43:13 -04:00
mark_story
8476edd3d1 Moving console lib classes into a new directory. 2010-10-17 17:39:05 -04:00
mark_story
a11a1214b7 Refactoring file scanning into a method which allows the removal of sketchy regular expressions.
Adding some colour for pimpness.
Updating tests as additional bootstrapped paths are treated as app paths now.
2010-10-17 17:32:37 -04:00
mark_story
2adbb0a3a3 Removing useless tearDown() 2010-10-17 17:30:38 -04:00
mark_story
78ba1d1361 Splitting up test suites. 2010-10-17 16:37:44 -04:00
mark_story
14820fe03f Moving more vendors/shells into console dirs. 2010-10-17 16:16:20 -04:00
mark_story
5737cf7877 Making TaskCollection use App::import instead of goofy shell paths.
Moving files in the testsuite around to reflect changed paths.
2010-10-17 15:58:44 -04:00
mark_story
8c63f155ba Renaming + moving test and task files around. Updating tests to use import for tasks. 2010-10-17 15:43:20 -04:00
mark_story
e85482f702 Making a missing method generate help, when a shell lacks a main() method. 2010-10-16 01:24:23 -04:00
mark_story
a234eeb0b0 Updating test cases for project task to not need to turn on verbose output. 2010-10-16 01:05:09 -04:00
mark_story
4627cc01cf Updating SchemaShell to use optionparser and removing old help.
Updating test case to use new param names.
2010-10-16 00:43:03 -04:00
mark_story
6ec4e07504 Updating testsuite test case. 2010-10-16 00:42:37 -04:00