Sha256: 3b0c4ad5db62225513f85aba49c1fe718b1c5a9d979c67abda57e39ef9d7633d

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

#!/usr/bin/env ruby

$:.push File.expand_path("../../lib", __FILE__)

require 'snapshot'
require 'commander/import'
require 'snapshot/update_checker'
require 'snapshot/dependency_checker'

HighLine.track_eof = false


# Commander
program :version, Snapshot::VERSION
program :description, 'CLI for \'Snapshot\' - Automatic taking of screenshots on all simulator types in all languages.'
program :help, 'Author', 'Felix Krause <krausefx@gmail.com>'
program :help, 'Website', 'http://felixkrause.at'
program :help, 'GitHub', 'https://github.com/krausefx/snapshot'
program :help_formatter, :compact

global_option('--verbose') { $verbose = true }


Snapshot::UpdateChecker.verify_latest_version

default_command :run

command :run do |c|
  c.syntax = 'snapshot'
  c.description = 'Run the script, to take all the screenshots.'
  c.action do |args, options|
    Snapshot::Runner.new.work
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
snapshot-0.1.0 bin/snapshot
snapshot-0.0.2 bin/snapshot