lib/upm/tools/pacman.rb in upm-0.1.9 vs lib/upm/tools/pacman.rb in upm-0.1.10

- old
+ new

@@ -1,6 +1,5 @@ - UPM::Tool.new "pacman" do os "arch" bin = ["pacman", "--color=always"] @@ -8,21 +7,19 @@ command "install", [*bin, "-S"], root: true command "update", [*bin, "-Sy"], root: true command "upgrade", [*bin, "-Syu"], root: true command "remove", [*bin, "-R"], root: true - # command "check", [*bin, "-Qkk"] - command "verify" do |args| + command "verify", root: true do |args| require 'upm/pacman_verifier' UPM::PacmanVerifier.new.verify!(*args) end command "audit", "arch-audit", paged: true command "files", [*bin, "-Ql"], paged: true - command "search", [*bin, "-Ss"], paged: true + command "search", [*bin, "-Ss"], paged: true, highlight: true - command "info" do |args| run(*bin, "-Qi", *args, paged: true) || run(*bin, "-Si", *args, paged: true) end command "list" do |args| @@ -106,9 +103,6 @@ "<grey>[<white>#{date} #{time}<grey>] <#{cmd_color}>#{cmd} <light_cyan>#{name} #{"<light_white>#{v2} " if v2}<white>(#{v1})".colorize end end - end - -