Sha256: 379972f202e1836125bd84accd08e504086fd093993c7dddda73d4cb1ce7a41a
Contents?: true
Size: 612 Bytes
Versions: 3
Compression:
Stored size: 612 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') <%= run sq(<<-'rb') require 'cl' class Add < Cl::Cmd register :add opt '--to GROUP', enum: %w(one two) def run p to: to end end rb -%> <%= run "Cl.new('owners').run(%w(add --to one))" %> <%= out '{:to=>"one"}' %> <%= run "Cl.new('owners').run(%w(add --to unknown))" %> <%= out sq(<<-'str') Unknown value: to=unknown (known values: one, two) Usage: owners add [options] Options: --to GROUP type: string, known values: one, two --help Get help on this command str %>
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
travis-cl-1.2.4 | examples/_src/readme/enum.erb.rb |
cl-1.2.4 | examples/_src/readme/enum.erb.rb |
cl-1.2.3 | examples/_src/readme/enum.erb.rb |