You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to wrap/hook a task in overseer (taskfile provider) to add params to my task. For some reason, when I run the task it doesn't ask me to set the params. Does anyone know how to do it?
I tried following options:
With a hook
require("overseer").add_template_hook({ module = "^task$" }, function(task_defn, util)
task_defn.params = vim.tbl_extend("keep", task_defn.params or {}, {
module = { type = "string" },
region = { type = "string" },
tier = { type = "string" },
})
end)
With a wrap
require("overseer").wrap_template({ module = "^task$" }, {
params = {
module = { type = "string" },
region = { type = "string" },
tier = { type = "string" },
},
}, {})
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to wrap/hook a task in overseer (taskfile provider) to add params to my task. For some reason, when I run the task it doesn't ask me to set the params. Does anyone know how to do it?
I tried following options:
With a hook
With a wrap
Any help is very welcome!
Beta Was this translation helpful? Give feedback.
All reactions