Sha256: 07bb3313a6c909bb19f8c267fa120912c7c975495de6b8502e7836a63e79f9cb
Contents?: true
Size: 792 Bytes
Versions: 1
Compression:
Stored size: 792 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'commander/import' require_relative '../lib/FormGenerator' input = nil program :version, '0.0.1' program :description, 'Validates Swift Style Guide' command :gen do |c| c.syntax = 'dftsg gen directory/with/Swift/files' c.summary = '' c.description = '' c.example 'description', 'dftsg input ' c.option '--output STRING', 'Optional output directory' c.action do |args, options| if args.count == 0 puts puts "You must provide the directory of Swift files to analyze:" puts puts "\t dftsg gen directory/with/Swift/files" puts 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.1 | bin/dftsg |