Prepare to thor 1.0

Thor will show a deprecation if a command fails and this method is not
define. We should investigate which command we want to return a non-zero
status when it fails but for now I'm just disabling the warning and
keeping the old behavior.
上级 2b42f33f
......@@ -24,6 +24,10 @@ class Base < Thor::Group
add_runtime_options!
strict_args_position!
def self.exit_on_failure? # :nodoc:
false
end
# Returns the source root for this generator using default_source_root as default.
def self.source_root(path = nil)
@_source_root = path if path
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册