Skip to content

Commit

Permalink
manual: document os module
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdanp committed Nov 5, 2023
1 parent 33d2f9d commit b8c37fb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 25 additions & 1 deletion manual/index.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,30 @@ Confluent Schema Registry.
See @secref["decoding-msgpack-data"] for an example.
}

@deflua[os.clock () number]{
Returns the number of milliseconds the process has been running for.
}

@deflua[os.getenv (name) string]{
Returns the value of the environment variable named @tt{name}.
}

@deflua[os.remove (path) void]{
Removes the file found at the given path.
}

@deflua[os.rename (src dst) void]{
Moves the file at @tt{src} to @tt{dst}.
}

@deflua[os.time () number]{
Returns the current number of seconds since the UNIX epoch.
}

@deflua[os.tmpname () string]{
Creates a new temporary file and returns its path.
}

@deflua[print (...) void]{
Prints @tt{...} to standard output, separating the elements with tabs.
}
Expand Down Expand Up @@ -819,7 +843,7 @@ aggregated data to a window when applying a script.

@deflua[render.Candlestick (o h l c) Candlestick]{
Returns an instance of a candlestick. The arguments must be numbers
representing the ope, high, low and close price, respectively, of
representing the open, high, low and close price, respectively, of
some asset.
}

Expand Down
1 change: 1 addition & 0 deletions website/versions/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# 2023.11.15 (Version 1.4, Build 1)
## Added

* Documentation for many new Lua functions.
* Initial support for rendering data from Lua scripts.

## Fixed
Expand Down

0 comments on commit b8c37fb

Please sign in to comment.