Class: Shoes::UI::CLI::SelectBackendCommand

Inherits:
BaseCommand
  • Object
show all
Defined in:
shoes-core/lib/shoes/ui/cli/select_backend_command.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#args

Instance Method Summary collapse

Methods inherited from BaseCommand

#help_from_options, #initialize, #parse!, #warn_on_unexpected_parameters

Constructor Details

This class inherits a constructor from Shoes::UI::CLI::BaseCommand

Instance Method Details

#helpObject



13
14
15
16
17
18
19
# File 'shoes-core/lib/shoes/ui/cli/select_backend_command.rb', line 13

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

#runObject



7
8
9
10
11
# File 'shoes-core/lib/shoes/ui/cli/select_backend_command.rb', line 7

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