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 collect_rows(options: nil, hide_keys: [], mask_keys: [], prefix: '', mask: '********')
        rows = []
        options.each do |key, value|
          prefixed_key = "#{prefix}#{key}"
          next if value.nil?
          next if value.to_s == ""
          next if hide_keys.include?(prefixed_key)
          value = mask if mask_keys.include?(prefixed_key)
          if value.respond_to? :key
            rows.concat self.collect_rows(options: value, hide_keys: hide_keys, mask_keys: mask_keys, prefix: "#{prefix}#{key}.", mask: mask)
          else
            rows << [prefixed_key, value]
          end
        end
        rows
      end
def collect_rows ( options : nil , hide_keys : [ ] , mask_keys : [ ] , prefix : '' , mask : '********' ) rows = [ ] options . each do | key , value | prefixed_key = "#{prefix}#{key}" next if value . nil? next if value . to_s == "" next if hide_keys . include? ( prefixed_key ) value = mask if mask_keys . include? ( prefixed_key ) if value . respond_to? :key rows . concat self . collect_rows ( options : value , hide_keys : hide_keys , mask_keys : mask_keys , prefix : "#{prefix}#{key}." , mask : mask ) else rows << [ prefixed_key , value ] end end rows 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 .
options
<not_specific>
hide_keys
<not_specific>
mask_keys
<not_specific>
prefix
<not_specific>
mask
<not_specific>