snapshot/lib/snapshot/commands_generator.rb in fastlane-2.6.0 vs snapshot/lib/snapshot/commands_generator.rb in fastlane-2.7.0
- old
+ new
@@ -25,11 +25,11 @@
always_trace!
FastlaneCore::CommanderGenerator.new.generate(Snapshot::Options.available_options)
command :run do |c|
- c.syntax = 'snapshot'
+ c.syntax = 'fastlane snapshot'
c.description = 'Take new screenshots based on the Snapfile.'
c.action do |args, options|
load_config(options)
@@ -37,32 +37,32 @@
Snapshot::Runner.new.work
end
end
command :init do |c|
- c.syntax = 'snapshot init'
+ c.syntax = 'fastlane snapshot init'
c.description = "Creates a new Snapfile in the current directory"
c.action do |args, options|
require 'snapshot/setup'
path = (Snapshot::Helper.fastlane_enabled? ? './fastlane' : '.')
Snapshot::Setup.create(path)
end
end
command :update do |c|
- c.syntax = 'snapshot update'
+ c.syntax = 'fastlane snapshot update'
c.description = "Updates your SnapshotHelper.swift to the latest version"
c.action do |args, options|
require 'snapshot/update'
Snapshot::Update.new.update
end
end
command :reset_simulators do |c|
- c.syntax = 'snapshot reset_simulators'
+ c.syntax = 'fastlane snapshot reset_simulators'
c.description = "This will remove all your existing simulators and re-create new ones"
c.option '-i', '--ios String', String, 'The comma separated list of iOS Versions you want to use'
c.option '--force', 'Disables confirmation prompts'
c.action do |args, options|
@@ -73,10 +73,10 @@
Snapshot::ResetSimulators.clear_everything!(versions, options.force)
end
end
command :clear_derived_data do |c|
- c.syntax = 'snapshot clear_derived_data -f path'
+ c.syntax = 'fastlane snapshot clear_derived_data -f path'
c.description = "Clear the directory where build products and other derived data will go"
c.action do |args, options|
load_config(options)
derived_data_path = Snapshot.config[:derived_data_path]