frameit/lib/frameit/commands_generator.rb in fastlane-2.142.0 vs frameit/lib/frameit/commands_generator.rb in fastlane-2.143.0

- old
+ new

@@ -5,10 +5,11 @@ require_relative 'device_types' require_relative 'runner' require_relative 'options' require_relative 'dependency_checker' +require_relative 'device' HighLine.track_eof = false module Frameit class CommandsGenerator @@ -75,9 +76,33 @@ FastlaneCore::CommanderGenerator.new.generate(Frameit::Options.available_options, command: c) c.action do |args, options| load_config(options) Frameit::Runner.new.run('.', Frameit::Color::ROSE_GOLD) + end + end + + command :android do |c| + c.syntax = 'fastlane frameit android' + c.description = "Adds Android frames around all screenshots" + + FastlaneCore::CommanderGenerator.new.generate(Frameit::Options.available_options, command: c) + + c.action do |args, options| + load_config(options) + Frameit::Runner.new.run('.', nil, Platform::ANDROID) + end + end + + command :ios do |c| + c.syntax = 'fastlane frameit ios' + c.description = "Adds iOS frames around all screenshots" + + FastlaneCore::CommanderGenerator.new.generate(Frameit::Options.available_options, command: c) + + c.action do |args, options| + load_config(options) + Frameit::Runner.new.run('.', nil, Platform::IOS) end end command :setup do |c| c.syntax = 'fastlane frameit setup'