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:
Jarek Radosz 2021-10-21 21:01:05 +02:00 committed by GitHub
parent 70fa67a9e1
commit 451cd4ec3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,10 @@
require "thor"
class DiscourseCLI < Thor
def self.exit_on_failure?
true
end
desc "remap [--global,--regex] FROM TO", "Remap a string sequence across all tables"
long_desc <<-LONGDESC
Replace a string sequence FROM with TO across all tables.