Sha256: e3ba309034d6ac200f9b611fc8f02715ceb62b4419aec847b08a0351afa99727

Contents?: true

Size: 296 Bytes

Versions: 15

Compression:

Stored size: 296 Bytes

Contents

#!/usr/bin/env ruby
$: << File.expand_path('lib')

<%= run sq(<<-'rb')
    require 'cl'

    class Add < Cl::Cmd
      opt '--to GROUP', type: :array

      def run
        p to
      end
    end
  rb
-%>

<%= run "Cl.new('owners').run(%w(add --to one --to two))" %>

<%= out '["one", "two"]' %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
cl-1.2.2 examples/_src/readme/array.erb.rb
cl-1.2.1 examples/_src/readme/array.erb.rb
cl-1.2.0 examples/_src/readme/array.erb.rb
cl-1.1.5 examples/_src/readme/array.erb.rb
cl-1.1.4 examples/_src/readme/array.erb.rb
cl-1.1.3 examples/_src/readme/array.erb.rb
cl-1.1.2 examples/_src/readme/array.erb.rb
cl-1.1.1 examples/_src/readme/array.erb.rb
cl-1.1.0 examples/_src/readme/array.erb.rb
cl-1.0.5 examples/_src/readme/array.erb.rb
cl-1.0.4 examples/_src/readme/array.erb.rb
cl-1.0.3 examples/_src/readme/array.erb.rb
cl-1.0.2 examples/_src/readme/array.erb.rb
cl-1.0.1 examples/_src/readme/array.erb.rb
cl-1.0.0 examples/src/readme/array.erb.rb