snapshot/lib/snapshot/commands_generator.rb in fastlane-2.69.0.beta.20171212010004 vs snapshot/lib/snapshot/commands_generator.rb in fastlane-2.69.0

- old
+ new

@@ -43,10 +43,11 @@ c.description = "Creates a new Snapfile in the current directory" c.action do |args, options| require 'snapshot/setup' path = Snapshot::Helper.fastlane_enabled? ? FastlaneCore::FastlaneFolder.path : '.' - Snapshot::Setup.create(path) + is_swift_fastfile = args.include?("swift") + Snapshot::Setup.create(path, is_swift_fastfile: is_swift_fastfile) end end command :update do |c| c.syntax = 'fastlane snapshot update'