Sha256: d42b6e57d58deeb0c890d09b2b62a440e8f57ea006f7976f70877438514d9f2a

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

require 'thor'

module Swift
  module Pyrite
    class Cli < Thor
      desc "generate INPUT_PATH OUTPUT_PATH", "Generates a fake for protocol in INPUT_PATH and writes it to OUTPUT_PATH"
      def generate(input_path, output_path)
        generator.generate_fake_for(input_path, output_path)
      end

      no_commands do
        def generator
          Pyrite
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swift-pyrite-0.1.1 lib/swift/pyrite/cli.rb
swift-pyrite-0.1.0 lib/swift/pyrite/cli.rb