Sha256: 3b9929d287b27a32b1c4bbff036357a3c7676695f561bb10d2d5c2739b14493c
Contents?: true
Size: 932 Bytes
Versions: 17
Compression:
Stored size: 932 Bytes
Contents
module FastlaneCore class PrintTable class << self # This method prints out all the user inputs in a nice table. Useful to summarize the run # You can pass an array to `hide_key` if you don't want certain elements to show up (symbols) def print_values(config: nil, title: nil, hide_keys: []) require 'terminal-table' rows = [] config.available_options.each do |config_item| value = config.fetch(config_item.key, ask: false) # Don't ask the user for missing values at this point next if value.nil? next if value.to_s == "" next if hide_keys.include?(config_item.key) rows << [config_item.key, value] end params = {} params[:rows] = rows params[:title] = title.green if title puts "" puts Terminal::Table.new(params) puts "" return params end end end end
Version data entries
17 entries across 17 versions & 1 rubygems