README.md in commander-4.2.1 vs README.md in commander-4.3.0
- old
+ new
@@ -1,7 +1,7 @@
[<img src="https://secure.travis-ci.org/ggilder/commander.png?branch=master" alt="Build Status" />](http://travis-ci.org/ggilder/commander)
-[![Inline docs](http://inch-ci.org/github/visionmedia/commander.png)](http://inch-ci.org/github/visionmedia/commander)
+[![Inline docs](http://inch-ci.org/github/tj/commander.png)](http://inch-ci.org/github/tj/commander)
# Commander
The complete solution for Ruby command-line executables.
Commander bridges the gap between other terminal related libraries
@@ -73,19 +73,23 @@
end
end
```
Example output:
+
```
$ foobar bar
# => (bar)
$ foobar bar --suffix '}' --prefix '{'
# => {bar}
```
### Modular style
+
+**NOTE:** Make sure to use `require 'commander'` rather than `require 'commander/import'`, otherwise Commander methods will still be imported into the global namespace.
+
```ruby
require 'rubygems'
require 'commander'
class MyApplication
@@ -110,10 +114,11 @@
MyApplication.new.run if $0 == __FILE__
```
### Block style
+
```ruby
require 'rubygems'
require 'commander'
Commander.configure do
@@ -232,11 +237,11 @@
```
## Growl Notifications
Commander provides methods for displaying Growl notifications. To use these
-methods you need to install http://github.com/visionmedia/growl which utilizes
+methods you need to install http://github.com/tj/growl which utilizes
the [growlnotify](http://growl.info/extras.php#growlnotify) executable. Note that
growl is auto-imported by Commander when available, no need to require.
```ruby
# Display a generic Growl notification
@@ -423,11 +428,11 @@
global_option '--config FILE'
```
## ASCII Tables
-For feature rich ASCII tables for your terminal app check out visionmedia's terminal-table gem at http://github.com/visionmedia/terminal-table
+For feature rich ASCII tables for your terminal app check out the terminal-table gem at http://github.com/tj/terminal-table
+----------+-------+----+--------+-----------------------+
| Terminal | Table | Is | Wicked | Awesome |
+----------+-------+----+--------+-----------------------+
| | | | | get it while its hot! |
@@ -442,10 +447,10 @@
$ spec --color spec
## Contrib
Feel free to fork and request a pull, or submit a ticket
-http://github.com/visionmedia/commander/issues
+http://github.com/tj/commander/issues
## License
This project is available under the MIT license. See LICENSE for details.