Skip to content

Adding components #7

Answered by stevearc
ranjithshegde asked this question in Q&A
Aug 4, 2022 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

Templates have a builder function that returns a overseer.TaskDefinition. This is passed in directly to overseer.new_task. This could probably be documented better, but the type can be found here:

---@class overseer.TaskDefinition
---@field cmd string|string[]
---@field args? string[]
---@field name? string
---@field cwd? string
---@field env? table<string, string>
---@field strategy? string|table
---@field metadata? table
---@field components? table TODO more specific type

So your template could look like this:

local my_template = {
  name = "My template",
  params = {}…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ranjithshegde
Comment options

@stevearc
Comment options

@ranjithshegde
Comment options

@stevearc
Comment options

@ranjithshegde
Comment options

Answer selected by ranjithshegde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants