Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Falkor opened this issue Jan 16, 2015 · 2 comments
Open

Comments

@Falkor
Copy link

Falkor commented Jan 16, 2015

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)
@flyinbutrs
Copy link

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

@dgorack
Copy link

dgorack commented Jun 30, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants