Sha256: 7c7a425440545b56418f4b6b0a92d437cb4bdbab40f329355b301526222e7f1c

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

#!/usr/bin/env ruby
require 'gli'
require 'itools'

include GLI::App
 
program_desc 'a collection of tools for ios developer'
version Itools::VERSION

desc "Analyze the memory footprint of each part or component in Xcode project"
arg 'xxx.txt'
command :parse do |c|
    c.action do |global_options, options, args|
         Itools::LinkMap.parser(args[0])
    end
end

desc "search str(or strs) in some file(or folder's file)"
arg 'xxx.txt'
command :search do |c|
    c.action do |global_options, options, args|
         Itools::StringSearcher.search_result(args[0],args[1])
    end
end
# 查找工程中没有用到的图片
desc "search unuse image"
arg 'xxx.txt'
command :find do |c|
    c.action do |global_options, options, args|
         Itools::ImgFinder.find(args[0])
    end
end
# 计算占用内存大小
desc "calculate the memory footprint of file or folder(contain file)"
arg 'xxx.txt'
command :sizeFor do |c|
    c.action do |global_options, options, args|
         Itools::Memory.sizeFor(args[0])
    end
end
exit run(ARGV)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itools-0.1.8 bin/itools
itools-0.1.7 bin/itools
itools-0.1.6 bin/itools