Sha256: e4ba7e2fba31c158f1c907a3c7fafab487c9b1bc2188245a6ae674b9ad88b1d1
Contents?: true
Size: 591 Bytes
Versions: 15
Compression:
Stored size: 591 Bytes
Contents
#!/usr/bin/env ruby $: << File.expand_path('lib') <%= run sq(<<-'rb') require 'cl' class Add < Cl::Cmd 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
15 entries across 15 versions & 1 rubygems