Skip to content

Commit

Permalink
fix: update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Mar 10, 2024
1 parent 46ae4d5 commit c85a8fa
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/cpp-sdl/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ configure = { cmd = [
# We wanna build in the .build directory
"-B",
".build",
], sources = ["CMakeLists.txt"] }
], inputs = ["CMakeLists.txt"] }

# Build the executable but make sure CMake is configured first.
[feature.build.tasks.build]
cmd = ["ninja", "-C", ".build"]
depends_on = ["configure"]
sources = [
inputs = [
"CMakeLists.txt",
"src/*"
]
generates = [
outputs = [
".build/bin/sdl_example"
]

Expand Down
3 changes: 2 additions & 1 deletion schema/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ class TaskInlineTable(StrictBaseModel):
depends_on: list[NonEmptyStr] | NonEmptyStr | None = Field(
None, description="The tasks that this task depends on"
)

inputs: list[Glob] | None = Field(None, description="A list of glob patterns that should be watched for changes before this command is run")
outputs: list[Glob] | None = Field(None, description="A list of glob patterns that are generated by this command")

#######################
# System requirements #
Expand Down
34 changes: 34 additions & 0 deletions schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,40 @@
"default": null,
"description": "The tasks that this task depends on",
"title": "Depends On"
},
"inputs": {
"anyOf": [
{
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "A list of glob patterns that should be watched for changes before this command is run",
"title": "Inputs"
},
"outputs": {
"anyOf": [
{
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "A list of glob patterns that are generated by this command",
"title": "Outputs"
}
},
"title": "TaskInlineTable",
Expand Down

0 comments on commit c85a8fa

Please sign in to comment.