Sha256: 1c77f6252e047c1fb31f597ada0455e124927dc6673d401089b1a0131f483201

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

class Shoes
  module UI
    class CLI
      class SelectBackendCommand < BaseCommand
        def run
          require 'shoes/ui/picker'
          backend = args[1]
          Shoes::UI::Picker.new.run(ENV["SHOES_BIN_DIR"], backend)
        end

        def help
          <<~EOS
            shoes select_backend [backend]
                Select a Shoes backend to use. A backend can be specified, or Shoes will
                attempt to auto-detect available backends to select from.
EOS
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoes-core-4.0.0.rc1 lib/shoes/ui/cli/select_backend_command.rb