Sha256: 27a380ca4816f6c2ff8d0b1f2d12698aec8e3c659256c42cd0f1a4bc1d54123c

Contents?: true

Size: 1000 Bytes

Versions: 14

Compression:

Stored size: 1000 Bytes

Contents

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

require 'cl'

module Owners
  class Add < Cl::Cmd
    summary 'Add one or more owners to an existing owner group'

    description <<~str
      Use this command to add one or more owners to an existing
      owner group.
    str

    examples <<~str
      Adding a single user to the group admins:

        owners add user --to admins

      Adding a several users at once:

        owners add one two three --to admins
    str
  end
end

Cl.new('owners').run(%w(add --help))

# Output:
#
#   Usage: owners add [options]
#
#   Summary:
#
#     Add one or more owners to an existing owner group
#
#   Description:
#
#     Use this command to add one or more owners to an existing
#     owner group.
#
#   Options:
#
#     --help      Get help on this command
#
#   Examples:
#
#     Adding a single user to the group admins:
#
#       owners add user --to admins
#
#     Adding a several users at once:
#
#       owners add one two three --to admins

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
cl-1.2.2 examples/readme/description
cl-1.2.1 examples/readme/description
cl-1.2.0 examples/readme/description
cl-1.1.5 examples/readme/description
cl-1.1.4 examples/readme/description
cl-1.1.3 examples/readme/description
cl-1.1.2 examples/readme/description
cl-1.1.1 examples/readme/description
cl-1.1.0 examples/readme/description
cl-1.0.5 examples/readme/description
cl-1.0.4 examples/readme/description
cl-1.0.3 examples/readme/description
cl-1.0.2 examples/readme/description
cl-1.0.1 examples/readme/description