Skip to content

Commit 260e87a

Browse files
committed
chore(languages): All options have been adapted to acomodate the new bau architecture.
1 parent 596c9d2 commit 260e87a

File tree

22 files changed

+119
-215
lines changed

22 files changed

+119
-215
lines changed

lua/compiler/languages/asm.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Build and run program", value = "option1" },
8-
{ text = "2 - Build program", value = "option2" },
9-
{ text = "3 - Run program", value = "option3" },
10-
{ text = "4 - Build solution", value = "option4" },
11-
{ text = "5 - Run Makefile", value = "option5" }
7+
{ text = "Build and run program", value = "option1" },
8+
{ text = "Build program", value = "option2" },
9+
{ text = "Run program", value = "option3" },
10+
{ text = "Build solution", value = "option4" }
1211
}
1312

1413
--- Backend - overseer tasks performed on option selected
@@ -225,8 +224,6 @@ function M.action(selected_option)
225224
task:start()
226225
vim.cmd("OverseerOpen")
227226
end
228-
elseif selected_option == "option5" then
229-
require("compiler.languages.make").run_makefile() -- run
230227
end
231228
end
232229

lua/compiler/languages/c.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Build and run program", value = "option1" },
8-
{ text = "2 - Build program", value = "option2" },
9-
{ text = "3 - Run program", value = "option3" },
10-
{ text = "4 - Build solution", value = "option4" },
11-
{ text = "5 - Run Makefile", value = "option5" }
7+
{ text = "Build and run program", value = "option1" },
8+
{ text = "Build program", value = "option2" },
9+
{ text = "Run program", value = "option3" },
10+
{ text = "Build solution", value = "option4" }
1211
}
1312

1413
--- Backend - overseer tasks performed on option selected
@@ -136,8 +135,6 @@ function M.action(selected_option)
136135
task:start()
137136
vim.cmd("OverseerOpen")
138137
end
139-
elseif selected_option == "option5" then
140-
require("compiler.languages.make").run_makefile() -- run
141138
end
142139
end
143140

lua/compiler/languages/cpp.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Build and run program", value = "option1" },
8-
{ text = "2 - Build program", value = "option2" },
9-
{ text = "3 - Run program", value = "option3" },
10-
{ text = "4 - Build solution", value = "option4" },
11-
{ text = "5 - Run Makefile", value = "option5" }
7+
{ text = "Build and run program", value = "option1" },
8+
{ text = "Build program", value = "option2" },
9+
{ text = "Run program", value = "option3" },
10+
{ text = "Build solution", value = "option4" }
1211
}
1312

1413
--- Backend - overseer tasks performed on option selected
@@ -135,8 +134,6 @@ function M.action(selected_option)
135134
task:start()
136135
vim.cmd("OverseerOpen")
137136
end
138-
elseif selected_option == "option5" then
139-
require("compiler.languages.make").run_makefile() -- run
140137
end
141138
end
142139

lua/compiler/languages/cs.lua

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - build and run program (csc)", value = "option1" },
8-
{ text = "2 - build program (csc)", value = "option2" },
9-
{ text = "3 - run program (csc)", value = "option3" },
10-
{ text = "4 - Build solution (csc)", value = "option4" },
7+
{ text = "build and run program (csc)", value = "option1" },
8+
{ text = "build program (csc)", value = "option2" },
9+
{ text = "run program (csc)", value = "option3" },
10+
{ text = "Build solution (csc)", value = "option4" },
1111
{ text = "", value = "separator" },
12-
{ text = "5 - Build and run program (dotnet)", value = "option5" },
13-
{ text = "6 - Build program (dotnet)", value = "option6" },
14-
{ text = "", value = "separator" },
15-
{ text = "7 - Run Makefile", value = "option7" }
12+
{ text = "Build and run program (dotnet)", value = "option5" },
13+
{ text = "Build program (dotnet)", value = "option6" }
1614
}
1715

1816
--- Backend - overseer tasks performed on option selected
@@ -159,8 +157,6 @@ function M.action(selected_option)
159157
},},},})
160158
task:start()
161159
vim.cmd("OverseerOpen")
162-
elseif selected_option == "option7" then
163-
require("compiler.languages.make").run_makefile() -- run
164160
end
165161
end
166162

lua/compiler/languages/dart.lua

Lines changed: 13 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Run this file (interpreted)", value = "option1" },
8-
{ text = "2 - Run program (interpreted)", value = "option2" },
9-
{ text = "3 - Build solution (interpreted)", value = "option3" },
7+
{ text = "Run this file (interpreted)", value = "option1" },
8+
{ text = "Run program (interpreted)", value = "option2" },
9+
{ text = "Build solution (interpreted)", value = "option3" },
1010
{ text = "", value = "separator" },
11-
{ text = "4 - Build and run program (machine code)", value = "option4" },
12-
{ text = "5 - Build program (machine code)", value = "option5" },
13-
{ text = "6 - Run program (machine code)", value = "option6" },
14-
{ text = "7 - Build solution (machine code)", value = "option7" },
11+
{ text = "Build and run program (machine code)", value = "option4" },
12+
{ text = "Build program (machine code)", value = "option5" },
13+
{ text = "Run program (machine code)", value = "option6" },
14+
{ text = "Build solution (machine code)", value = "option7" },
1515
{ text = "", value = "separator" },
16-
{ text = "8 - Run program (flutter)", value = "option8" },
17-
{ text = "9 - Build for linux (flutter)", value = "option9" },
18-
{ text = "10 - Build for android (flutter)", value = "option10" },
19-
{ text = "11 - Build for ios (flutter)", value = "option11" },
20-
{ text = "12 - Build for web (flutter)", value = "option12" },
16+
{ text = "Run program (flutter)", value = "option8" },
17+
{ text = "Build for linux (flutter)", value = "option9" },
18+
{ text = "Build for android (flutter)", value = "option10" },
19+
{ text = "Build for ios (flutter)", value = "option11" },
20+
{ text = "Build for web (flutter)", value = "option12" },
2121
{ text = "", value = "separator" },
22-
{ text = "13 - Transpile program to javascript", value = "option13" },
23-
{ text = "14 - Run Makefile", value = "option14" }
22+
{ text = "Transpile program to javascript", value = "option13" }
2423
}
2524

2625
--- Backend - overseer tasks performed on option selected
@@ -327,21 +326,6 @@ function M.action(selected_option)
327326
},},},})
328327
task:start()
329328
vim.cmd("OverseerOpen")
330-
331-
332-
333-
334-
335-
336-
337-
338-
339-
340-
341-
342-
--=============================== MAKE ====================================--
343-
elseif selected_option == "option14" then
344-
require("compiler.languages.make").run_makefile() -- run
345329
end
346330
end
347331

lua/compiler/languages/elixir.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Run this file", value = "option1" },
8-
{ text = "2 - Mix run", value = "option2" },
9-
{ text = "3 - Run REPL", value = "option3" },
10-
{ text = "4 - Run Makefile", value = "option4" }
7+
{ text = "Run this file", value = "option1" },
8+
{ text = "Mix run", value = "option2" },
9+
{ text = "Run REPL", value = "option3" }
1110
}
1211

1312
--- Backend - overseer tasks performed on option selected
@@ -48,8 +47,6 @@ function M.action(selected_option)
4847
},},},})
4948
task:start()
5049
vim.cmd("OverseerOpen")
51-
elseif selected_option == "option4" then
52-
require("compiler.languages.make").run_makefile() -- run
5350
end
5451
end
5552

lua/compiler/languages/fsharp.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Build and run program (dotnet)", value = "option1" },
8-
{ text = "2 - Build program (dotnet)", value = "option2" },
9-
{ text = "3 - Run REPL", value = "option3" },
10-
{ text = "4 - Run Makefile", value = "option4" }
7+
{ text = "Build and run program (dotnet)", value = "option1" },
8+
{ text = "Build program (dotnet)", value = "option2" },
9+
{ text = "Run REPL", value = "option3" }
1110
}
1211

1312
--- Backend - overseer tasks performed on option selected
@@ -46,8 +45,6 @@ function M.action(selected_option)
4645
},},},})
4746
task:start()
4847
vim.cmd("OverseerOpen")
49-
elseif selected_option == "option4" then
50-
require("compiler.languages.make").run_makefile() -- run
5148
end
5249
end
5350

lua/compiler/languages/go.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Build and run program", value = "option1" },
8-
{ text = "2 - Build program", value = "option2" },
9-
{ text = "3 - Run program", value = "option3" },
10-
{ text = "4 - Build solution", value = "option4" },
11-
{ text = "5 - Run Makefile", value = "option5" }
7+
{ text = "Build and run program", value = "option1" },
8+
{ text = "Build program", value = "option2" },
9+
{ text = "Run program", value = "option3" },
10+
{ text = "Build solution", value = "option4" }
1211
}
1312

1413
--- Backend - overseer tasks performed on option selected
@@ -136,8 +135,6 @@ function M.action(selected_option)
136135
task:start()
137136
vim.cmd("OverseerOpen")
138137
end
139-
elseif selected_option == "option5" then
140-
require("compiler.languages.make").run_makefile() -- run
141138
end
142139
end
143140

lua/compiler/languages/java.lua

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Build and run program (class)", value = "option1" },
8-
{ text = "2 - Build progrm (class)", value = "option2" },
9-
{ text = "3 - Run program (class)", value = "option3" },
10-
{ text = "4 - Build solution (class)", value = "option4" },
7+
{ text = "Build and run program (class)", value = "option1" },
8+
{ text = "Build progrm (class)", value = "option2" },
9+
{ text = "Run program (class)", value = "option3" },
10+
{ text = "Build solution (class)", value = "option4" },
1111
{ text = "", value = "separator" },
12-
{ text = "5 - Build and run program (jar)", value = "option5" },
13-
{ text = "6 - Build program (jar)", value = "option6" },
14-
{ text = "7 - Run program (jar)", value = "option7" },
15-
{ text = "8 - Build solution (jar)", value = "option8" },
16-
{ text = "", value = "separator" },
17-
{ text = "9 - Run Makefile", value = "option9" }
12+
{ text = "Build and run program (jar)", value = "option5" },
13+
{ text = "Build program (jar)", value = "option6" },
14+
{ text = "Run program (jar)", value = "option7" },
15+
{ text = "Build solution (jar)", value = "option8" }
1816
}
1917

2018
--- Backend - overseer tasks performed on option selected
@@ -270,8 +268,6 @@ function M.action(selected_option)
270268
task:start()
271269
vim.cmd("OverseerOpen")
272270
end
273-
elseif selected_option == "option9" then
274-
require("compiler.languages.make").run_makefile() -- run
275271
end
276272
end
277273

lua/compiler/languages/javascript.lua

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ local M = {}
44

55
--- Frontend - options displayed on telescope
66
M.options = {
7-
{ text = "1 - Run this file", value = "option1" },
8-
{ text = "2 - Run program", value = "option2" },
9-
{ text = "3 - NPM install", value = "option3" },
10-
{ text = "4 - NPM start", value = "option4" },
11-
{ text = "5 - Run Makefile", value = "option5" }
7+
{ text = "Run this file", value = "option1" },
8+
{ text = "Run program", value = "option2" },
9+
{ text = "NPM install", value = "option3" },
10+
{ text = "NPM start", value = "option4" }
1211
}
1312

1413
--- Backend - overseer tasks performed on option selected
@@ -65,8 +64,6 @@ function M.action(selected_option)
6564
task:start()
6665
vim.cmd("OverseerOpen")
6766
vim.cmd("OverseerOpen")
68-
elseif selected_option == "option5" then
69-
require("compiler.languages.make").run_makefile() -- run
7067
end
7168

7269
end

0 commit comments

Comments
 (0)