lib/cli_template/command.rb in cli-template-4.0.1 vs lib/cli_template/command.rb in cli-template-4.0.2
- old
+ new
@@ -41,7 +41,16 @@
end
super
end
end
+
+ # https://github.com/erikhuda/thor/issues/244
+ # Deprecation warning: Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `Lono::CLI`
+ # You can silence deprecations warning by setting the environment variable THOR_SILENCE_DEPRECATION.
+ no_commands do
+ def exit_on_failure?
+ true
+ end
+ end
end
end