-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathdioxus.lua
More file actions
20 lines (17 loc) · 556 Bytes
/
dioxus.lua
File metadata and controls
20 lines (17 loc) · 556 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- Dioxus bau actions
local M = {}
-- Backend - overseer tasks performed on option selected
function M.action(_)
local overseer = require("overseer")
local final_message = "--task finished--"
local task = overseer.new_task({
name = "- Dioxus runner",
strategy = { "orchestrator",
tasks = {{ "shell", name = "- Build and run Dioxus ",
cmd = "dx serve --hot-reload" .. -- run
" && echo '" .. final_message .. "'"
},},},})
task:start()
vim.cmd("OverseerOpen")
end
return M