Sha256: 49cb1ffb82f14a60061437061b49ec0f6bdd0c3dd019a89ae88471fefc18ec4f

Contents?: true

Size: 739 Bytes

Versions: 5

Compression:

Stored size: 739 Bytes

Contents

UPM::Tool.new "apk" do

  os "alpine"

  command "install", "apk add",      root: true
  command "remove",  "apk del",      root: true
  command "update",  "apk update",   root: true
  command "upgrade", "apk upgrade",  root: true
  command "clean",   "apk clean",    root: true

  command "files",   "apk info -L",  paged: true
  command "search" do |args|
    query = args.join(".+")
    run "apk", "search", *args, sort: true, paged: true, highlight: query
  end

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

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
upm-0.1.18 lib/upm/tools/apk.rb
upm-0.1.17 lib/upm/tools/apk.rb
upm-0.1.16 lib/upm/tools/apk.rb
upm-0.1.15 lib/upm/tools/apk.rb
upm-0.1.14 lib/upm/tools/apk.rb