0

I have problems listing my tasks in thor, even with the simplest program:

class Mytest < Thor
  desc "Hello world", "Puts 'hello world' on the console"
  def hello
    puts "Hello world"
  end
end

Here is the console output when i run thor list

$ thor list
mytest
------
thor mytest:world  # Puts 'hello world' on the console

As you can see the "hello" method name is omitted from the output. Can you help me out please?

Thank you,
Paul

1 Answer 1

1

Just change the 'desc' line to:

desc "hello", "Puts 'hello world' on the console"

Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.