22
33local M = {}
44
5- -- Frontend - options displayed on telescope
5+ -- Frontend - options displayed on telescope
66M .options = {
7- { text = " Gleam build and run" , value = " option1" },
8- { text = " Gleam build " , value = " option2" },
9- { text = " Gleam run " , value = " option3" },
7+ { text = " Build and run program " , value = " option1" },
8+ { text = " Build program " , value = " option2" },
9+ { text = " Run program " , value = " option3" },
1010}
1111
1212-- Backend - overseer tasks performed on option selected
@@ -18,30 +18,30 @@ function M.action(selected_option)
1818 local task = overseer .new_task ({
1919 name = " - Gleam compiler" ,
2020 strategy = { " orchestrator" ,
21- tasks = {{ name = " - gleam build & run → " .. " \" ./gleam.toml\" " ,
22- cmd = " gleam build " .. -- compile
23- " && gleam run" .. -- run
24- " && echo \" " .. final_message .. " \" " , -- echo
21+ tasks = {{ name = " - Build & run program → " .. " \" ./gleam.toml\" " ,
22+ cmd = " gleam build " .. -- compile
23+ " && gleam run" .. -- run
24+ " && echo \" " .. final_message .. " \" " , -- echo
2525 components = { " default_extended" }
2626 },},},})
2727 task :start ()
2828 elseif selected_option == " option2" then
2929 local task = overseer .new_task ({
3030 name = " - Gleam compiler" ,
3131 strategy = { " orchestrator" ,
32- tasks = {{ name = " - gleam build → " .. " \" ./gleam.toml\" " ,
33- cmd = " gleam build " .. -- compile
34- " && echo \" " .. final_message .. " \" " , -- echo
32+ tasks = {{ name = " - Build program → " .. " \" ./gleam.toml\" " ,
33+ cmd = " gleam build " .. -- compile
34+ " && echo \" " .. final_message .. " \" " , -- echo
3535 components = { " default_extended" }
3636 },},},})
3737 task :start ()
3838 elseif selected_option == " option3" then
3939 local task = overseer .new_task ({
4040 name = " - Gleam compiler" ,
4141 strategy = { " orchestrator" ,
42- tasks = {{ name = " - gleam run → " .. " \" ./gleam.toml\" " ,
43- cmd = " gleam run " .. -- compile
44- " && echo \" " .. final_message .. " \" " , -- echo
42+ tasks = {{ name = " - Run program → " .. " \" ./gleam.toml\" " ,
43+ cmd = " gleam run " .. -- compile
44+ " && echo \" " .. final_message .. " \" " , -- echo
4545 components = { " default_extended" }
4646 },},},})
4747 task :start ()
0 commit comments