mark_story
9ebd015739
Adding omitted return statements.
2010-10-17 22:43:06 -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
8f0a96d4bb
Adding Shel::$command back in as it was still being used, oops.
...
Updating Bakeshell to do its tricks at the correct time.
2010-10-17 22:37:57 -04:00
mark_story
561067e797
Making the skel tmp dirs world writable.
2010-10-17 22:36:59 -04:00
mark_story
ae6846277e
Updating text that doesn't make sense as Cake uses PHPunit now.
2010-10-17 21:29:30 -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
db6149a5e8
Adding some more colour to the project task.
...
Making regular expressions easier to read.
2010-10-17 19:08:08 -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
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
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
2cdbd67d7d
Updating ShellDispatcher to use import() and new paths.
2010-10-17 15:08:41 -04:00
mark_story
a76ce4af3d
Renaming console/libs to console/shells so its more consistent with app directories.
2010-10-17 15:07:00 -04:00
mark_story
09ee1b7dce
Fixing issue where schema create would always dry run.
2010-10-16 01:46:47 -04:00
mark_story
cf98942c72
Updating Acl and i18n shells to use dispatchShell.
2010-10-16 01:38:11 -04:00
mark_story
abea7294e6
Adding some documentation for Shell::dispatchShell()
...
Fixing string dispatching.
2010-10-16 01:37:43 -04:00
mark_story
28fc07c055
Adding Shell::dispatchShell() will replace $this->Dispatch->dispatch use in Shells.
2010-10-16 01:28:59 -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
134f4835ab
Adding some colours to project task, and fixing verbose output question.
2010-10-16 01:02:15 -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
ced7243f95
Making ConsoleOptionParser not default options to true. Having them this way made it pretty difficult to write simple conditions in shells, as options would always be truthy.
2010-10-16 00:39:22 -04:00
mark_story
02f42f3454
Making colouring wrap lines.
2010-10-16 00:04:58 -04:00
mark_story
46dcf8b036
Fixing formatting on generated help in ConsoleOptionParser.
...
Updating tests.
Making Shell::wrapText a simple wrapper for String::wrap()
2010-10-15 23:09:28 -04:00
mark_story
5f90ac2b45
Adding width wrapping to the generated help. Should help with having content that is too long.
2010-10-14 23:21:56 -04:00
mark_story
0492a188ed
Adding Shell::wrapText() to extend String methods, with indenting which can be useful in shell output.
2010-10-14 22:58:23 -04:00
mark_story
b8467164f8
Making ConsoleOutput work correctly when multiple identical tags are used.
2010-10-14 22:16:42 -04:00
mark_story
0428320c78
Adding verbose/quiet flags back to testsuite shell.
2010-10-14 22:15:01 -04:00
mark_story
124a910830
Adding documentation for output levels.
2010-10-13 23:44:50 -04:00
mark_story
4be57a2ea5
Adding output levels to Shell
...
Adding tests for output levels.
2010-10-13 23:40:45 -04:00
mark_story
c6ef589139
Adding filter option to the testsuite, seems I forgot it.
2010-10-13 23:40:14 -04:00
mark_story
037bc6cb2f
Changing how arguments are shown in help output.
2010-10-13 23:18:28 -04:00
mark_story
81d61a66c8
Re-formatting code and removing old help method.
2010-10-13 23:18:27 -04:00
mark_story
03688bc2ff
Adding an option parser to controller task.
...
Converting the public and admin positional arguments into switches.
Updating the task and test cases to reflect the switches changes.
2010-10-13 23:18:27 -04:00
mark_story
5fd85c1150
Adding a very basic option parser to DbConfigTask.
2010-10-13 23:18:27 -04:00
mark_story
6b6d9e9b30
Adding option parser to model task.
...
Adding omitted options to view task.
2010-10-13 23:18:27 -04:00
mark_story
4985572f9b
Adding option parser to the project task.
2010-10-13 23:18:27 -04:00
mark_story
50139b153c
Adding OptionParser to view task.
...
Adding epilog information about interactive mode to view and fixture tasks.
2010-10-13 23:18:27 -04:00
mark_story
d3e4cedf12
Updating test task to use the option parser.
...
Removing dead help method.
2010-10-13 23:18:27 -04:00
mark_story
52c1c71e4a
Updating fixture task to use the OptionParser
...
Fixing failing tests caused by changing tasks to lazy loading.
2010-10-13 23:18:27 -04:00
mark_story
10090696a0
Making boolean switches behave.
...
Boolean switches always show up in the parsed options. When left undefined they insert a false, and when included they insert a true. This makes working with them require less checks.
2010-10-13 23:18:26 -04:00
mark_story
b328276289
Adding default values into the parsed output.
...
This makes it so options with default values are always part of the parsed options regardless of whether or not they were included. This will allow shells to include less logic checking for existence of parameters.
2010-10-13 23:18:26 -04:00
mark_story
3585620470
Adding a ghetto option parser to the testsuite shell. Still need to add in all the options from phpunit, and the other cake options.
2010-10-13 23:18:26 -04:00
mark_story
2af684cbec
Fixing issue where exceptions for missing required arguments would be raised when trying to get help.
2010-10-13 23:18:26 -04:00
mark_story
43646b9372
Updating AclShell to use new formatting and removing methods that are no longer needed.
2010-10-13 23:18:26 -04:00
mark_story
0fd8d2b8e4
Adding addSubcommands, and support for subcommands to buildFromArray.
...
This makes the API consistent across all the elements of ConsoleOptionParser.
2010-10-13 23:18:26 -04:00
mark_story
577603fbd9
Adding documentation, and improving error messages.
2010-10-13 23:18:26 -04:00
mark_story
c3750d1108
Updating AclShell to use features of ConsoleOptionParser.
2010-10-13 23:18:26 -04:00
mark_story
99407e788f
Fixing issue where choices would not be correctly validated.
2010-10-13 23:18:26 -04:00
mark_story
8c990a9e08
Fixing failing tests caused by API changes.
2010-10-13 23:18:26 -04:00