lib/vindetta/cli.rb in vindetta-0.5.0 vs lib/vindetta/cli.rb in vindetta-0.6.0

- old
+ new

@@ -12,11 +12,18 @@ c.action do |_global, _options, args| puts Vindetta::Transliterator.run(args.first) end end - desc 'Generates a random vin' - command :generate do |c| + desc 'Validates a VIN' + command [:validate, :v] do |c| + c.action do |_global, _options, args| + puts Vindetta::Validator.run(args.first) + end + end + + desc 'Generates a random VIN' + command [:generate, :g] do |c| c.action do |_global, _options, _args| puts Vindetta::Generator.generate end end end