feat: added "Lazy check" to check for updates without updating

This commit is contained in:
Folke Lemaitre 2022-11-29 08:23:23 +01:00
parent d486bc586b
commit 63cf2a52bd
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
4 changed files with 25 additions and 4 deletions

View file

@ -83,6 +83,20 @@ function M.update(opts)
end)
end
function M.check(opts)
opts = opts or {}
M.run({
pipeline = {
"git.fetch",
"wait",
{ "git.log", check = true },
},
plugins = function(plugin)
return plugin.uri and plugin._.installed
end,
}, opts)
end
---@param opts? ManagerOpts
function M.log(opts)
M.run({