lua rewrite
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
local util = require("modules/util")
|
||||
|
||||
local function get_num_installed_pkgs()
|
||||
local distros = {}
|
||||
distros.alpine = "apk list --installed | wc -l"
|
||||
|
||||
-- Choose and/or add your own distro
|
||||
return util.process_get_one_line(distros.alpine)
|
||||
end
|
||||
|
||||
return { name = "pkgs", cmd = get_num_installed_pkgs }
|
||||
Reference in New Issue
Block a user