fastlane_core/lib/fastlane_core/print_table.rb
# This method prints out all the user inputs in a nice table. Useful to summarize the run
# You can pass an array to `hide_keys` if you don't want certain elements to show up (symbols or strings)
# You can pass an array to `mask_keys` if you want to mask certain elements (symbols or strings)
This method prints out all the user inputs in a nice table. Useful to summarize the run
You can pass an array to `hide_keys` if you don't want certain elements to show up (symbols or strings)
You can pass an array to `mask_keys` if you want to mask certain elements (symbols or strings)
This method prints out all the user inputs in a nice table . Useful to summarize the run You can pass an array to ` hide_keys ` if you don ' t want certain elements to show up ( symbols or strings ) You can pass an array to ` mask_keys ` if you want to mask certain elements ( symbols or strings )
def print_values(config: nil, title: nil, hide_keys: [], mask_keys: [])
        require 'terminal-table'
        options = {}
        unless config.nil?
          if config.kind_of?(FastlaneCore::Configuration)
            config.available_options.each do |config_item|
              if config_item.sensitive
                mask_keys << config_item.key.to_s
              end
            end
            options = config.values(ask: false)
          else
            options = config
          end
        end
        rows = self.collect_rows(options: options, hide_keys: hide_keys.map(&:to_s), mask_keys: mask_keys.map(&:to_s), prefix: '')
        params = {}
        params[:rows] = limit_row_size(rows)
        params[:title] = title.green if title
        puts ""
        puts Terminal::Table.new(params)
        puts ""
        return params
      end
def print_values ( config : nil , title : nil , hide_keys : [ ] , mask_keys : [ ] ) require 'terminal-table' options = { } unless config . nil? if config . kind_of? ( FastlaneCore :: Configuration ) config . available_options . each do | config_item | if config_item . sensitive mask_keys << config_item . key . to_s end end options = config . values ( ask : false ) else options = config end end rows = self . collect_rows ( options : options , hide_keys : hide_keys . map ( & :to_s ) , mask_keys : mask_keys . map ( & :to_s ) , prefix : '' ) params = { } params [ :rows ] = limit_row_size ( rows ) params [ :title ] = title . green if title puts "" puts Terminal :: Table . new ( params ) puts "" return params end
This method prints out all the user inputs in a nice table.
This method prints out all the user inputs in a nice table .
# find sensitive options and mask them by default
config
<not_specific>
title
<not_specific>
hide_keys
<not_specific>
mask_keys
<not_specific>