mirror of
https://github.com/discourse/discourse.git
synced 2025-03-29 11:05:38 +08:00
DEV: Fix thor deprecation warning (#14680)
``` Deprecation warning: Thor exit with status 0 on errors. To keep this behavior, you must define `exit_on_failure?` in `DiscourseCLI` ```
This commit is contained in:
parent
70fa67a9e1
commit
451cd4ec3f
@ -4,6 +4,10 @@
|
|||||||
require "thor"
|
require "thor"
|
||||||
|
|
||||||
class DiscourseCLI < Thor
|
class DiscourseCLI < Thor
|
||||||
|
def self.exit_on_failure?
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
desc "remap [--global,--regex] FROM TO", "Remap a string sequence across all tables"
|
desc "remap [--global,--regex] FROM TO", "Remap a string sequence across all tables"
|
||||||
long_desc <<-LONGDESC
|
long_desc <<-LONGDESC
|
||||||
Replace a string sequence FROM with TO across all tables.
|
Replace a string sequence FROM with TO across all tables.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user