From fa7fdb305c9aa5d2da9b6e031ca121f5426a9384 Mon Sep 17 00:00:00 2001 From: sammy-ette Date: Thu, 3 Apr 2025 02:57:02 +0000 Subject: [PATCH] deploy: a5a3656c76c9ee689200e274d9a9a96818b66b49 --- versions/snail/docs/api/hilbish/index.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/versions/snail/docs/api/hilbish/index.html b/versions/snail/docs/api/hilbish/index.html index 68bd647..8feebef 100644 --- a/versions/snail/docs/api/hilbish/index.html +++ b/versions/snail/docs/api/hilbish/index.html @@ -109,7 +109,17 @@ interfaces and functions which directly relate to shell functionality.

Executed the cb function after a period of time.
This creates a Timer that starts ticking immediately.

Parameters

function cb

number time
Time to run in milliseconds.


hilbish.which(name) -> string

Checks if name is a valid command.
Will return the path of the binary, or a basename if it’s a commander.

Parameters -

string name


hilbish.runnerMode(mode) +

string name

Types +


Sink +

A sink is a structure that has input and/or output to/from a desination.

Methods +

autoFlush(auto) +

Sets/toggles the option of automatically flushing output. +A call with no argument will toggle the value.

flush() +

Flush writes all buffered input to the sink.

read() -> string +

Reads a liine of input from the sink.

readAll() -> string +

Reads all input from the sink.

write(str) +

Writes data to a sink.

writeln(str) +

Writes data to a sink with a newline at the end.


hilbish.runnerMode(mode)

Sets the execution/runner mode for interactive Hilbish. NOTE: This function is deprecated and will be removed in 3.0 Use hilbish.runner.setCurrent instead.