Sha256: 1813361c3dc03d1e272e871e4778a1486c6727362568b21f1677aa243c19454c

Contents?: true

Size: 691 Bytes

Versions: 1

Compression:

Stored size: 691 Bytes

Contents

UPM::Tool.new "pkg_add" do

  os "OpenBSD"

  command "install",  "pkg_add",      root: true
  command "remove",   "pkg_delete",   root: true
  command "upgrade",  "pkg_add -u",   root: true
  command "clean",    "yum clean",    root: true
  command "info",     "pkg_info",     paged: true
  command "files",    "pkg_info -L",  paged: true
  command "search",   "pkg_info -Q",  paged: true
  command "verify",   "pkg_check"

  command "list" do |args|
    if args.any?
      highlight_query = args.join(".+")
      grep_query = /#{highlight_query}/
      run "pkg_info", grep: grep_query, highlight: highlight_query, paged: true
    else
      run "pkg_info", paged: true
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
upm-0.1.18 lib/upm/tools/pkg_add.rb