Skip to content

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

License

Notifications You must be signed in to change notification settings

lastobelus/cleanthor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages