lib/aamva/cli.rb in aamva-0.1.0 vs lib/aamva/cli.rb in aamva-0.2.0

- old
+ new

@@ -1,19 +1,25 @@ # frozen_string_literal: true require 'gli' require 'aamva/version' -module Aamva +module AAMVA class CLI extend GLI::App - version Aamva::VERSION + version AAMVA::VERSION - command ["generate:day"] do |c| + 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 Aamva::Generator.day + puts encoder.png end end end end