Sha256: a99303e3e35f1917f1a4edc5fd8bff221ce8a579c287c25828616ad0d49addef
Contents?: true
Size: 1023 Bytes
Versions: 1
Compression:
Stored size: 1023 Bytes
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) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
skeleton-ui-0.0.7 | bin/skeleton |