Sha256: 45aa61486bb4f942a0981f26161e8bcc22b72e9a80741c3ab3918e103744c7e4
Contents?: true
Size: 1 KB
Versions: 7
Compression:
Stored size: 1 KB
Contents
module Fastlane class LaneList # Print out the result of `generate` def self.output(path) puts generate(path) puts "Execute using `fastlane [lane_name]`".yellow end def self.generate(path) ff = Fastlane::FastFile.new(path) output = "" all_keys = ff.runner.lanes.keys.reject(&:nil?) all_keys.unshift(nil) # because we want root elements on top. always! They have key nil all_keys.each do |platform| next if (ff.runner.lanes[platform] || []).count == 0 plat_text = platform plat_text = "general" if platform.to_s.empty? output += "\n--------- #{plat_text}---------\n".yellow value = ff.runner.lanes[platform] next unless value value.each do |lane_name, lane| next if lane.is_private output += "----- fastlane #{lane.pretty_name}".green output += "\n" + lane.description.join("\n") + "\n\n" if lane.description.count > 0 end end output end end end
Version data entries
7 entries across 7 versions & 1 rubygems