@@ -10,6 +10,7 @@ local M = {}
10
10
--- @field show ? boolean
11
11
--- @field mode ? string
12
12
--- @field plugins ? LazyPlugin[]
13
+ --- @field concurrency ? number
13
14
14
15
--- @param ropts RunnerOpts
15
16
--- @param opts ? ManagerOpts
@@ -20,7 +21,7 @@ function M.run(ropts, opts)
20
21
ropts .plugins = opts .plugins
21
22
end
22
23
23
- ropts .concurrency = ropts .concurrency or Config .options .concurrency
24
+ ropts .concurrency = ropts .concurrency or opts . concurrency or Config .options .concurrency
24
25
25
26
if opts .clear then
26
27
M .clear ()
52
53
53
54
--- @param opts ? ManagerOpts
54
55
function M .install (opts )
55
- M .run ({
56
+ return M .run ({
56
57
pipeline = {
57
58
" git.clone" ,
58
59
" git.checkout" ,
69
70
--- @param opts ? ManagerOpts |{ lockfile ?: boolean }
70
71
function M .update (opts )
71
72
opts = opts or {}
72
- M .run ({
73
+ return M .run ({
73
74
pipeline = {
74
75
" git.branch" ,
75
76
" git.fetch" ,
@@ -87,9 +88,10 @@ function M.update(opts)
87
88
end )
88
89
end
89
90
91
+ --- @param opts ? ManagerOpts
90
92
function M .check (opts )
91
93
opts = opts or {}
92
- M .run ({
94
+ return M .run ({
93
95
pipeline = {
94
96
" git.fetch" ,
95
97
" wait" ,
103
105
104
106
--- @param opts ? ManagerOpts
105
107
function M .log (opts )
106
- M .run ({
108
+ return M .run ({
107
109
pipeline = { " git.log" },
108
110
plugins = function (plugin )
109
111
return plugin .uri and plugin ._ .installed
113
115
114
116
--- @param opts ? ManagerOpts
115
117
function M .clean (opts )
116
- M .run ({
118
+ return M .run ({
117
119
pipeline = { " fs.clean" },
118
120
plugins = Config .to_clean ,
119
121
}, opts )
122
124
function M .clear ()
123
125
Plugin .load ()
124
126
for _ , plugin in pairs (Config .plugins ) do
127
+ plugin ._ .has_updates = nil
125
128
plugin ._ .updated = nil
126
129
plugin ._ .cloned = nil
127
130
plugin ._ .dirty = nil
0 commit comments