cleanthor icon indicating copy to clipboard operation
cleanthor copied to clipboard

Attempted to create command "invoke" without usage or description.

Open Falkor opened this issue 10 years ago • 2 comments

I receive the following warning on all invokation of cleanthor on Ruby 2.1.0:

$> bundle exec bin/cleanthor -T
[WARNING] Attempted to create command "invoke" without usage or description. Call desc if you want this method to be available as command or declare it inside a no_commands{} block. Invoked from "/private/tmp/cleanthor/lib/cleanthor/thor/task.rb:5:in `<class:Task>'".
garden
------
cleanthor garden:work:weed  # weed the garden

work
----
cleanthor work:shovel  # shovels stuff
$> ruby --version
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin12.0]

That looks minor of course, yet my attempts to add the desc to the invoke function of lib/cleanthor/thor/task.rb failed so far with the message

~/.rvm/gems/ruby-2.1.0/gems/thor-0.19.1/lib/thor/base.rb:534:in `is_thor_reserved_word?': "invoke" is a Thor reserved word and cannot be defined as command (RuntimeError)

Falkor avatar Jan 16 '15 11:01 Falkor

I see the same issue... any luck fixing this?

flyinbutrs avatar Feb 03 '15 18:02 flyinbutrs

Added a pull request that fixes the warning: #3 Hope that helps.

dgorack avatar Jun 30 '15 21:06 dgorack