an example of how to setup a gem with a thor-based executable that handles task namespaces cleanly
Ruby
Latest commit fb4280c Mar 19, 2013 @lastobelus handle invoke
Permalink
Failed to load latest commit information.
bin add deeper name-spaced task Dec 7, 2012
lib handle invoke Mar 19, 2013
.gitignore initial commit Dec 7, 2012
Gemfile initial commit Dec 7, 2012
LICENSE.txt initial commit Dec 7, 2012
README.md cleanup readme Dec 7, 2012
Rakefile initial commit Dec 7, 2012
Thorfile initial commit Dec 7, 2012
cleanthor.gemspec handle invoke Mar 19, 2013

README.md

Cleanthor

This is an example of how to setup a gem with a thor-based executable that handles task namespaces cleanly.

When using the binary, tasks will be listed without the gem namespace, in groups according to the next level namespace:

bundle exec cleanthor -T:
garden
------
cleanthor garden:work:weed  # weed the garden

work
----
cleanthor work:shovel  # shovels stuff

When using thor, tasks will be listed all under the main namespace:

bundle exec thor -T:
cleanthor
---------
thor cleanthor:garden:work:weed  # weed the garden
thor cleanthor:work:shovel       # shovels stuff