Sha256: de2a05088a3f2fce28b7ba77bf77788b9cd65a079e0dc0e55d9e3c2ae88444af

Contents?: true

Size: 835 Bytes

Versions: 1

Compression:

Stored size: 835 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'commander/import'

require_relative '../lib/FormGenerator'

input = nil

program :version, '0.1.1'
program :description, 'Validates Swift files based on Dafiti\'s Swift Style Guide'
 
command :gen do |c|
  c.syntax = 'dftsg gen directory/with/Swift/files [--output <outputdirectory>]'
  c.summary = 'Generates analysis report'
  c.description = 'Generates analysis report'
  c.option '--output PATH', 'Optional output directory'
  c.action do |args, options|
    if args.count == 0
      say_error "You must provide the directory of Swift files to analyze:"
      say_error "\t dftsg gen directory/with/Swift/files"
    else
      input = args.first
      output = options.output

      formGenerator = FormGenerator.new(input, output)
      formGenerator.generateForm
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dftsg-0.1.2 bin/dftsg