Sha256: 6cb7335809e14c408d3cadd4e0d4cb9827f124e9c7bcfff056803e2bfb461169

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

require 'gli'
require 'aamva/version'

module AAMVA
  class CLI
    extend GLI::App

    version AAMVA::VERSION

    command ['encode'] do |c|
      c.action do |_global, _options, _args|
        standard = AAMVA::Standard.new("2016")
        data = AAMVA::Generator.new(standard).data
        encoder = AAMVA::Encoder.new(
          standard: standard,
          data: data,
        )

        puts encoder.png
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aamva-0.2.0 lib/aamva/cli.rb