aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-09 02:43:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-09 02:43:15 -0400
commita306f945571c8027badd2ca673304991f628900c (patch)
tree328f8c57bec5e0b71d7c589213badb3b4d03b39c /environment.c
parent1fbe2cb5dd1aa4b20411ee0c3b00310677373a55 (diff)
Add mktemp functionality
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/environment.c b/environment.c
index 0f5e1826..25b0cb79 100644
--- a/environment.c
+++ b/environment.c
@@ -264,7 +264,9 @@ env_t *new_compilation_unit(CORD *libname)
{"remove", "Path$remove", "func(path:Path, ignore_missing=no)"},
{"resolved", "Path$resolved", "func(path:Path, relative_to=(./))->Path"},
{"subdirectories", "Path$children", "func(path:Path, include_hidden=no)->[Path]"},
+ {"unique_directory", "Path$unique_directory", "func(path:Path)->Path"},
{"write", "Path$write", "func(path:Path, text:Text, permissions=0o644_i32)"},
+ {"write_unique", "Path$write_unique", "func(path:Path, text:Text)->Path"},
)},
{"Shell", Type(TextType, .lang="Shell", .env=namespace_env(env, "Shell")), "Shell_t", "Shell$info", TypedArray(ns_entry_t,
{"escape_text", "Shell$escape_text", "func(text:Text)->Shell"},