Sha256: 645445ef7781e31a8c9bcf38e594c03c946379666d6f5918dbb94faadb5c1705
Contents?: true
Size: 1.44 KB
Versions: 4
Compression:
Stored size: 1.44 KB
Contents
#!/usr/bin/env ruby $:.push File.expand_path("../../lib", __FILE__) require 'snapshot' require 'commander/import' require 'snapshot/snapfile_creator' require 'snapshot/snapshot_config' HighLine.track_eof = false # Commander program :version, Snapshot::VERSION program :description, 'CLI for \'Snapshot\' - Automate taking localized screenshots of your iOS app on every device' program :help, 'Author', 'Felix Krause <snapshot@krausefx.com>' program :help, 'Website', 'http://fastlane.tools' program :help, 'GitHub', 'https://github.com/krausefx/snapshot' program :help_formatter, :compact global_option('--verbose') { $verbose = true } default_command :run command :run do |c| c.syntax = 'snapshot' c.description = 'Run the script, to take all the screenshots' c.option '--snapfile STRING', String, 'Custom path for your Snapfile' c.option '--noclean', 'Skips the clean process when running snapshot.' c.action do |args, options| path = (Snapshot::Helper.fastlane_enabled?? './fastlane' : '.') Dir.chdir(path) do # switch the context Snapshot::SnapshotConfig.shared_instance(options.snapfile) Snapshot::Runner.new.work(clean: !options.noclean) end end end command :init do |c| c.syntax = 'snapshot init' c.description = "Creates a new Snapfile in the current directory" c.action do |args, options| path = (Snapshot::Helper.fastlane_enabled?? './fastlane' : '.') Snapshot::SnapfileCreator.create(path) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
snapshot-0.4.3 | bin/snapshot |
snapshot-0.4.2 | bin/snapshot |
snapshot-0.4.1 | bin/snapshot |
snapshot-0.4.0 | bin/snapshot |