Sha256: a06341540fc9156917c865bd1da38c0af3e11d1fffc7d18105c86a2694143621

Contents?: true

Size: 453 Bytes

Versions: 6

Compression:

Stored size: 453 Bytes

Contents

class Ppl::Command::Url < Ppl::Command::Attribute

  name        "url"
  description "List, show or change URLs"

  def initialize
    @attribute   = :urls
    @show_format = Ppl::Format::Contact::Urls.new
    @list_format = Ppl::Format::AddressBook::Urls.new
  end

  def options(parser, options)
    parser.banner = "usage: ppl url <contact> [<url>]"
    parser.on("-d", "--delete", "delete url") do
      options[:delete] = true
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ppl-1.14.1 lib/ppl/command/url.rb
ppl-1.14.0 lib/ppl/command/url.rb
ppl-1.13.0 lib/ppl/command/url.rb
ppl-1.12.0 lib/ppl/command/url.rb
ppl-1.11.0 lib/ppl/command/url.rb
ppl-1.10.0 lib/ppl/command/url.rb