@@ -13,8 +13,8 @@ M.options = {
13
13
{ text = " Cargo build" , value = " option6" },
14
14
{ text = " Cargo run" , value = " option7" },
15
15
{ text = " " , value = " separator" },
16
- { text = " Cargo build --all and run" , value = " option8" },
17
- { text = " Cargo build --all " , value = " option9" }
16
+ { text = " Cargo build --workspace and run" , value = " option8" },
17
+ { text = " Cargo build --workspace " , value = " option9" }
18
18
}
19
19
20
20
-- Backend - overseer tasks performed on option selected
@@ -173,8 +173,8 @@ function M.action(selected_option)
173
173
local task = overseer .new_task ({
174
174
name = " - Rust compiler" ,
175
175
strategy = { " orchestrator" ,
176
- tasks = {{ " shell" , name = " - Cargo build --all & run → " .. " Cargo.toml" ,
177
- cmd = " cargo build --all " .. -- compile
176
+ tasks = {{ " shell" , name = " - Cargo build --workspace & run → " .. " Cargo.toml" ,
177
+ cmd = " cargo build --workspace " .. -- compile
178
178
" && cargo run" ..
179
179
" && echo '" .. final_message .. " '" -- echo
180
180
},},},})
@@ -184,8 +184,8 @@ function M.action(selected_option)
184
184
local task = overseer .new_task ({
185
185
name = " - Rust compiler" ,
186
186
strategy = { " orchestrator" ,
187
- tasks = {{ " shell" , name = " - Cargo build --all → " .. " Cargo.toml" ,
188
- cmd = " cargo build --all " .. -- compile
187
+ tasks = {{ " shell" , name = " - Cargo build --workspace → " .. " Cargo.toml" ,
188
+ cmd = " cargo build --workspace " .. -- compile
189
189
" && echo '" .. final_message .. " '" -- echo
190
190
},},},})
191
191
task :start ()
0 commit comments