Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -7710,6 +7710,12 @@
"versions": {
"19.0.0": "https://json.schemastore.org/vtcfg-v19.0.0.json"
}
},
{
"name": "sake",
"description": "Configuration for Sake, Swift-based utility for managing project commands",
"fileMatch": [".sake.yml"],
"url": "https://json.schemastore.org/sake.json"
}
]
}
11 changes: 11 additions & 0 deletions src/schemas/json/cargo-make.json
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,17 @@
}
}
}
},
"condition_type": {
"description": "How multiple conditions are evaluated",
"enum": ["And", "Or", "GroupOr"],
"type": "string",
"default": "And",
"x-taplo": {
"links": {
"key": "https://sagiegurari.github.io/cargo-make/#usage-conditions-and-or"
}
}
}
}
},
Expand Down
23 changes: 23 additions & 0 deletions src/schemas/json/sake.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/sake.json",
"title": "Sake configuration file",
"description": "Configuration schema for Sake, Swift-based utility for managing project commands",
"type": "object",
"properties": {
"case_converting_strategy": {
"type": "string",
"enum": ["keepOriginal", "toSnakeCase", "toKebabCase"],
"description": "Strategy for converting command names"
},
"sake_app_path": {
"type": "string",
"description": "Path to the SakeApp package"
},
"sake_app_prebuilt_binary_path": {
"type": "string",
"description": "Path to the prebuilt SakeApp executable"
}
},
"additionalProperties": false
}
4 changes: 4 additions & 0 deletions src/test/cargo-make/cargo-make.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"install_crate": "rustfmt"
},
"format2": {
"condition": {
"condition_type": "Or",
"files_exist": ["src/main.rs", "src/lib.rs"]
},
"dependencies": ["format"]
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/test/sake/complete-example.sake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# yaml-language-server: $schema=../../schemas/json/sake.json
case_converting_strategy: toSnakeCase
sake_app_path: ./SakeApp
sake_app_prebuilt_binary_path: ./SakeApp/.build/debug/SakeApp
2 changes: 2 additions & 0 deletions src/test/sake/incomplete-example.sake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# yaml-language-server: $schema=../../schemas/json/sake.json
case_converting_strategy: toSnakeCase