@@ -8,7 +8,11 @@ M.options = {
8
8
{ text = " 2 - Build program" , value = " option2" },
9
9
{ text = " 3 - Run program" , value = " option3" },
10
10
{ text = " 4 - Build solution" , value = " option4" },
11
- { text = " 5 - Run Makefile" , value = " option5" }
11
+ { text = " " , value = " separator" },
12
+ { text = " 5 - Build and run dotnet" , value = " option5" },
13
+ { text = " 6 - Build dotnet" , value = " option6" },
14
+ { text = " " , value = " separator" },
15
+ { text = " 7 - Run Makefile" , value = " option7" }
12
16
}
13
17
14
18
--- Backend - overseer tasks performed on option selected
@@ -136,6 +140,28 @@ function M.action(selected_option)
136
140
vim .cmd (" OverseerOpen" )
137
141
end
138
142
elseif selected_option == " option5" then
143
+ local task = overseer .new_task ({
144
+ name = " - C compiler" ,
145
+ strategy = { " orchestrator" ,
146
+ tasks = {{ " shell" , name = " - Build & run .net project → .cproj" ,
147
+ cmd = " dotnet run" .. -- compile and run
148
+ " && echo " .. entry_point .. -- echo
149
+ " && echo '" .. final_message .. " '"
150
+ },},},})
151
+ task :start ()
152
+ vim .cmd (" OverseerOpen" )
153
+ elseif selected_option == " option6" then
154
+ local task = overseer .new_task ({
155
+ name = " - C compiler" ,
156
+ strategy = { " orchestrator" ,
157
+ tasks = {{ " shell" , name = " - Build .net project → .csproj" ,
158
+ cmd = " dotnet build" .. -- compile
159
+ " && echo " .. entry_point .. -- echo
160
+ " && echo '" .. final_message .. " '"
161
+ },},},})
162
+ task :start ()
163
+ vim .cmd (" OverseerOpen" )
164
+ elseif selected_option == " option7" then
139
165
require (" compiler.languages.make" ).run_makefile () -- run
140
166
end
141
167
end
0 commit comments