Sha256: 9889fb64ed771f7261b481ef1be1b2caad1874261107ee27194cf0b067765d55

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

#!/usr/bin/env ruby

require 'commander/import'
require_relative '../lib/skeleton'

module Skeleton
	program :version, VERSION
	program :description, 'CLI for fast generating multi language page objects from iOS and Android screens.'

	command :scan do |c|
	  c.syntax = 'skeleton scan [options]'
	  c.description = 'Make screen objects'
	  c.example 'description', 'skeleton scan -p ios -u 749575366595763538563 -b com.my.bundle'
	  c.option '-p', '--platform PLATFORM', String, 'Set device platform: android or ios'
	  c.option '-u', '--udid UDID', String, 'Set device UDID'
	  c.option '-b', '--bundle BUNDLE', String, 'Set Bundle ID for your app [required for iOS]'
	  c.action do |args, options|
	    Skeleton.new(options).run
	  end
	end

	command :clear do |c|
	  c.syntax = 'skeleton clear'
	  c.description = 'Clear user cache'
	  c.example 'description', 'skeleton clear'
	  c.action do |args, options|
	    FileUtils.rm_rf(Base::PAGE_OBJECTS_FOLDER)
	    FileUtils.rm_rf(Base::ATTACHMENTS_FOLDER)
	    Base.new.log.info("Successfully clear user cache")
	  end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
skeleton-ui-0.0.12 bin/skeleton
skeleton-ui-0.0.11 bin/skeleton
skeleton-ui-0.0.10 bin/skeleton
skeleton-ui-0.0.8 bin/skeleton