Skip to content

Commit a83c425

Browse files
authored
Merge pull request #779 from SteveL-MSFT/format-function
Add `format()` experimental function
2 parents aaec641 + 5eb0c8b commit a83c425

File tree

7 files changed

+394
-22
lines changed

7 files changed

+394
-22
lines changed

dsc/Cargo.lock

Lines changed: 56 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dsc_lib/Cargo.lock

Lines changed: 21 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dsc_lib/Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ chrono = "0.4"
1616
clap = { version = "4.5", features = ["derive"] }
1717
derive_builder ="0.20"
1818
indicatif = "0.17"
19-
jsonschema = { version = "0.29", default-features = false }
19+
jsonschema = { version = "0.30", default-features = false }
2020
linked-hash-map = "0.5"
2121
num-traits = "0.2"
2222
regex = "1.11"
23+
rt-format = "0.3"
2324
rust-i18n = { version = "3.1" }
2425
# reqwest = { version = "0.12.8", features = ["native-tls"], default-features = false }
2526
schemars = { version = "0.8", features = ["preserve_order"] }
@@ -29,13 +30,13 @@ serde_yaml = { version = "0.9" }
2930
thiserror = "2.0"
3031
security_context_lib = { path = "../security_context_lib" }
3132
semver = "1.0"
32-
tokio = { version = "1.43", features = ["full"] }
33+
tokio = { version = "1.44", features = ["full"] }
3334
tracing = "0.1"
3435
tracing-indicatif = { version = "0.3" }
3536
tree-sitter = "0.25"
3637
tree-sitter-rust = "0.24"
3738
tree-sitter-dscexpression = { path = "../tree-sitter-dscexpression" }
38-
uuid = { version = "1.15", features = ["v4"] }
39+
uuid = { version = "1.16", features = ["v4"] }
3940
which = "7.0"
4041

4142
[dev-dependencies]

dsc_lib/locales/en-us.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,13 @@ notFound = "Environment variable not found"
200200
[functions.if]
201201
conditionNotBoolean = "Condition is not a boolean"
202202

203+
[functions.format]
204+
experimental = "`format()` function is experimental"
205+
formatInvalid = "First `format()` argument must be a string"
206+
numberTooLarge = "Number is too large"
207+
invalidArgType = "Unsupported argument type"
208+
invalidFormatString = "Invalid format string"
209+
203210
[functions.int]
204211
invalidInput = "invalid input string"
205212
parseStringError = "unable to parse string to int"

0 commit comments

Comments
 (0)