Permalink
Browse files

tweaked doc for consistency in examples

  • Loading branch information...
1 parent 1f6f770 commit 6b8ddc1d2de1b621aaa8aed656b5f12672457a8a heartsentwined committed Sep 7, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -41,16 +41,16 @@ Often you need to display similarly-formatted text in a CLI app, e.g. section ti
### Setup templates
-Add a template named `foo`, which outputs a blue string `## %s ##` (`%s` replaced by actual text).
+Add a template named `section`, which outputs a blue string `## %s ##` (`%s` replaced by actual text).
```php
-$cli->addTemplate('foo', array(
+$cli->addTemplate('section', array(
'template' => '## %s ##',
'color' => 'BLUE',
));
```
-- `template`: (optional), `%s` as text placeholder; not set = `%s` (plain text)
+- `template`: (optional), `%s` as text placeholder; not set = `'%s'` (plain text)
- `color`: (optional), a `\Zend\Console\ColorInterface` defined constant name; not set = default / normal color
You can also inject templates through the config file:

0 comments on commit 6b8ddc1

Please sign in to comment.