class Devpad::CLI::Commands::Account::Select

Public Class Methods

new(shell:) click to toggle source
# File lib/devpad/cli/commands/account/select.rb, line 6
def initialize(shell:)
  @cli = HighLine.new
  @shell = shell
end

Public Instance Methods

execute() click to toggle source
# File lib/devpad/cli/commands/account/select.rb, line 11
def execute
  Devpad::Account.current = @cli.choose do |menu|
    Choose.new(menu: menu).perform
  end
  Devpad::Account.save!
  Display.new(shell: @shell).perform if @shell.present?
end