aboutsummaryrefslogtreecommitdiff
path: root/library/lullaby/io.lua
diff options
context:
space:
mode:
authoramy <[email protected]>2025-04-14 14:09:22 -0500
committerGitHub <[email protected]>2025-04-14 14:09:22 -0500
commitdd7a8af4050454c3901987bff24a77334f892cc4 (patch)
tree48c6107656e14cfbbcbb49424fc3454de850a5db /library/lullaby/io.lua
parent44c68aa7d51ea6b50c442bfbfa4ce11c530d2f7d (diff)
parentdc7e4527e88ed0c59e17c0ff04c01e1c92136e42 (diff)
Merge pull request #1 from ameliasquires/new-config
updates how config values are updated, support for local values when copying states, and annotations
Diffstat (limited to 'library/lullaby/io.lua')
-rw-r--r--library/lullaby/io.lua47
1 files changed, 47 insertions, 0 deletions
diff --git a/library/lullaby/io.lua b/library/lullaby/io.lua
new file mode 100644
index 0000000..6e7eb9d
--- /dev/null
+++ b/library/lullaby/io.lua
@@ -0,0 +1,47 @@
+---@meta
+
+---@class io
+---@field filemallocchunk integer default chunk size for readfile
+---@field print_type integer print the type next to the value
+---@field max_depth integer max print depth before collapsing
+---@field start_nl_at integer when to start new line while printing
+---@field collapse_all integer whether or not to collapse everything
+---@field collapse_to_memory integer when collapsing, print memory address
+---@field print_meta integer print metatable
+local io = {}
+
+---print a string with a "pretty" log header
+---@param value string value to print
+---@return nil
+function io.log(value) end
+
+---print a string with a "pretty" warning header
+---@param value string value to print
+---@return nil
+function io.warn(value) end
+
+---print a string with a "pretty" error header
+---@param value string value to print
+---@return nil
+function io.error(value) end
+
+---print a string with a "pretty" debug header
+---@param value string value to print
+---@return nil
+function io.debug(value) end
+
+---prints any value, expanding tables
+---@param value any value to print
+---@return nil
+function io.pprint(value) end
+
+---@deprecated
+function io.readfile() end
+
+---@deprecated
+function io.json_parse() end
+
+---@deprecated
+function io.arg_handle() end
+
+return io