feat: dependencies are opt=true by default if they only appear as a dep

This commit is contained in:
Folke Lemaitre 2022-11-29 19:51:37 +01:00
parent 5810635a26
commit 908b9adf9c
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 128 additions and 26 deletions

View file

@ -115,7 +115,7 @@ end
---@param opts? ManagerOpts
function M.clean(opts)
Plugin.update_state(true)
Plugin.update_state({ clean = true })
M.run({
pipeline = { "fs.clean" },
plugins = Config.to_clean,
@ -123,7 +123,7 @@ function M.clean(opts)
end
function M.clear()
Plugin.update_state(true)
Plugin.update_state({ clean = true })
for _, plugin in pairs(Config.plugins) do
plugin._.updated = nil
plugin._.cloned = nil