【发布时间】:2015-01-18 18:45:52
【问题描述】:
我已将其放入我的 Foo.thor:
class Foo < Thor
desc 'hello', 'prints hello'
def hello
puts 'hello'
end
end
Foo.start(ARGV)
但是在执行 'thor foo:hello' 时,我收到以下错误消息:
Could not find command "foo:hello" in "foo" namespace.
连同输出“你好”
所以“你好”的输出看起来是正确的,但是前一行的错误消息让我想知道是否有问题。
我可以摆脱那个错误信息吗?
【问题讨论】:
标签: ruby command-line thor