Sha256: c86692bfa331eef68a17f09e7bbe8ab3b26bccd34543a1223db3f3c7444f013e

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 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)
    end
end

# 查找文件
desc "search File in folder"
arg 'file name'
command :searchFile do |c|
    c.action do |global_options, options, args|
         Itools::FileSearcher.searchFile(args)
    end
end
exit run(ARGV)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itools-0.2.5 bin/itools
itools-0.2.4 bin/itools
itools-0.2.3 bin/itools