lib/balboa/cli/defaults.rb in balboa-0.1.3 vs lib/balboa/cli/defaults.rb in balboa-0.1.4

- old
+ new

@@ -1,19 +1,18 @@ # frozen_string_literal: true require 'yaml' -require 'highline' module Balboa module CLI class Defaults - def self.prompt - new.prompt + def self.prompt(*args) + new(*args).prompt end - def initialize - @config = {} - @cli = HighLine.new + def initialize(cli, config={}) + @config = config + @cli = cli end def prompt prompt_attributes