Permalink
Browse files

updated README: added namespaces

  • Loading branch information...
1 parent 24e58d6 commit 2aed0c1abd5ec3107a844d049d8448e6edbea231 @bakkdoor bakkdoor committed Apr 27, 2012
Showing with 26 additions and 0 deletions.
  1. +26 −0 README.md
View
@@ -38,6 +38,32 @@ To see a list of general options use the help command:
$ fake --help
```
+## Namespaces
+
+You can place tasks in namespaces by placing them inside a named block
+that doesn't contain its own `run` option:
+
+```fancy
+Fake tasks: {
+ namespace_a: {
+ task_a: {
+ run: {
+ # ...
+ }
+ }
+ }
+
+ namespace_b: {
+ task_b: {
+ depends: 'namespace_a:task_a
+ run: {
+ # ...
+ }
+ }
+ }
+}
+```
+
## Specifying dependencies
You can specify dependencies via the `depends` option, like so:

0 comments on commit 2aed0c1

Please sign in to comment.