Sha256: bc2c1cef6fae2dc26e9516c41c1316d757d4cb0457a94b25c064b7cea5a16e8e
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'commander/import' require_relative '../lib/ClassAnalyzer' program :version, '0.0.2' program :description, 'Swift Code Coverage Static Analyzer' command :gen do |c| c.syntax = 'dftcc gen directory/with/Swift/files [--output <outputdirectory>]' c.summary = 'Generates analysis report of code coverage' c.description = 'Generates analysis report of code coverage.' c.option '--output PATH', 'Optional output directory' c.action do |args, options| if args.count < 2 say_error "You must provide the directory of Swift files to analyze:" say_error "\t dftsg gen directory/with/Swift/files" elsif args.count > 2 say_error "If you want to select an output directory, use the --output command" say_error "\t dftsg gen directory/with/Swift/files --output my/output/directory" elsif args.count == 2 input = args.first inputTest = args[1] output = options.output analyzer = ClassAnalyzer.new(input, inputTest, output) analyzer.analyze end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dftcc-0.1.0 | bin/dftcc |