mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 15:04:59 +08:00
24 lines
445 B
Plaintext
24 lines
445 B
Plaintext
|
#!/usr/bin/env ruby
|
||
|
# frozen_string_literal: true
|
||
|
|
||
|
require "thor"
|
||
|
require_relative "../lib/migrations"
|
||
|
|
||
|
module Migrations
|
||
|
load_rails_environment
|
||
|
configure_zeitwerk
|
||
|
enable_i18n
|
||
|
|
||
|
class CommandLineInterface < Thor
|
||
|
include ::Migrations::CLI::ConvertCommand
|
||
|
include ::Migrations::CLI::ImportCommand
|
||
|
include ::Migrations::CLI::UploadCommand
|
||
|
|
||
|
def self.exit_on_failure?
|
||
|
true
|
||
|
end
|
||
|
end
|
||
|
|
||
|
CommandLineInterface.start
|
||
|
end
|