More buildins and vscode exstention <CO-AUthored, ai>

This commit is contained in:
allexanderbergmns
2026-08-25 16:20:11 +02:00
parent 5daadce7a9
commit 7ed774089e
27 changed files with 2080 additions and 122 deletions
+20
View File
@@ -73,3 +73,23 @@ fn env(name) {
fn exec(cmd) {
return build_exec(cmd)
}
// ext returns the file extension including the dot ("file.txt" -> ".txt").
fn ext(path) {
return path_ext(path)
}
// abs converts a path to an absolute one.
fn abs(path) {
return path_abs(path)
}
// rel returns path relative to base ("a/b/c.txt" relative to "a" -> "b/c.txt").
fn rel(path, base) {
return path_rel(path, base)
}
// exec_full runs a shell command and returns {code, stdout, stderr}.
fn exec_full(cmd) {
return exec_full(cmd)
}