diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 18:07:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-21 18:07:17 -0400 |
| commit | c153e052583fecc39f2cac9c40f99218e2e70c41 (patch) | |
| tree | 7f570bddbe3147ddcba3086a598eef59ca0ee3a0 /environment.c | |
| parent | b468ee67f21570d278f80d569eca8ee4149fb7cd (diff) | |
Fixes for ask() being optional and command success status
Diffstat (limited to 'environment.c')
| -rw-r--r-- | environment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c index 9f230cd0..85677524 100644 --- a/environment.c +++ b/environment.c @@ -585,7 +585,7 @@ env_t *global_env(void) {"random", "default_rng", "RNG"}, {"say", "say", "func(text:Text, newline=yes)"}, {"print", "say", "func(text:Text, newline=yes)"}, - {"ask", "ask", "func(prompt:Text, bold=yes, force_tty=yes -> Text)"}, + {"ask", "ask", "func(prompt:Text, bold=yes, force_tty=yes -> Text?)"}, {"exit", "tomo_exit", "func(message=none:Text, code=Int32(1) -> Abort)"}, {"fail", "fail_text", "func(message:Text -> Abort)"}, {"sleep", "sleep_num", "func(seconds:Num)"}, |
