Sha256: 2a1ba2d37d788ee84d24bc1713f17bd235348ca34fa0fd90fe3dfed0bf478dea

Contents?: true

Size: 580 Bytes

Versions: 10

Compression:

Stored size: 580 Bytes

Contents

require "thor"

require "imap/backup/cli/helpers"
require "imap/backup/setup"

module Imap; end

module Imap::Backup
  class CLI < Thor; end

  # Runs the menu-driven setup program
  class CLI::Setup < Thor
    include Thor::Actions
    include CLI::Helpers

    def initialize(options)
      super([])
      @options = options
    end

    # @!method run
    #   @return [void]
    no_commands do
      def run
        config = load_config(**options, require_exists: false)
        Setup.new(config: config).run
      end
    end

    private

    attr_reader :options
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
imap-backup-15.0.3.rc1 lib/imap/backup/cli/setup.rb
imap-backup-15.0.2 lib/imap/backup/cli/setup.rb
imap-backup-15.0.1 lib/imap/backup/cli/setup.rb
imap-backup-15.0.0 lib/imap/backup/cli/setup.rb
imap-backup-14.6.1 lib/imap/backup/cli/setup.rb
imap-backup-14.6.0 lib/imap/backup/cli/setup.rb
imap-backup-14.5.2 lib/imap/backup/cli/setup.rb
imap-backup-14.5.1 lib/imap/backup/cli/setup.rb
imap-backup-14.5.0 lib/imap/backup/cli/setup.rb
imap-backup-14.4.5 lib/imap/backup/cli/setup.rb