Commit graph

3942 commits

Author SHA1 Message Date
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
84a8dbd85a Merge branch '2.0' into 2.0-console 2010-10-17 23:32:38 -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
Juan Basso
d771239104 Fixed support to save XML data in Models. 2010-10-17 22:47:43 -02: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
d64aed59cc Adding console libs into AllTests 2010-10-17 17:33:16 -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
Juan Basso
b2035a5c96 Fixing tests that failing in Set because merge of Xml class. 2010-10-17 18:40:33 -02: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
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
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
98a654c4b9 Expanding String::wrap to be able to indent and start indenting at a specific offset. 2010-10-15 22:46:03 -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
7f70c8a95d Removing a test that doesn't need to be implemented. 2010-10-14 23:21:14 -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
7b5ae6a5c4 Adding String::wrap() to handle wrapping strings for console output. 2010-10-14 22:32:56 -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
4be57a2ea5 Adding output levels to Shell
Adding tests for output levels.
2010-10-13 23:40:45 -04:00
mark_story
037bc6cb2f Changing how arguments are shown in help output. 2010-10-13 23:18:28 -04:00
mark_story
3e1554f5bb Adding incomplete tests so I remember what to do next. 2010-10-13 23:18:28 -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
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