2023-02-06 13:02:13 -05:00
|
|
|
# Lune v0.3.0
|
2023-01-18 20:47:14 -05:00
|
|
|
---
|
|
|
|
globals:
|
|
|
|
# FS (filesystem)
|
|
|
|
fs.readFile:
|
2023-01-29 20:16:17 -05:00
|
|
|
must_use: true
|
2023-01-18 20:47:14 -05:00
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.readDir:
|
2023-01-29 20:16:17 -05:00
|
|
|
must_use: true
|
2023-01-18 20:47:14 -05:00
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.writeFile:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
- type: string
|
|
|
|
fs.writeDir:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.removeFile:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.removeDir:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.isFile:
|
2023-01-29 20:16:17 -05:00
|
|
|
must_use: true
|
2023-01-18 20:47:14 -05:00
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.isDir:
|
2023-01-29 20:16:17 -05:00
|
|
|
must_use: true
|
2023-01-18 20:47:14 -05:00
|
|
|
args:
|
|
|
|
- type: string
|
2023-01-19 17:56:12 -05:00
|
|
|
# Net (networking)
|
|
|
|
net.jsonEncode:
|
2023-01-29 20:16:17 -05:00
|
|
|
must_use: true
|
2023-01-18 20:47:14 -05:00
|
|
|
args:
|
|
|
|
- type: any
|
|
|
|
- required: false
|
|
|
|
type: boolean
|
2023-01-19 17:56:12 -05:00
|
|
|
net.jsonDecode:
|
2023-01-29 20:16:17 -05:00
|
|
|
must_use: true
|
2023-01-18 20:47:14 -05:00
|
|
|
args:
|
|
|
|
- type: string
|
2023-01-19 17:56:12 -05:00
|
|
|
net.request:
|
|
|
|
args:
|
|
|
|
- type: any
|
2023-02-03 19:27:56 -05:00
|
|
|
net.serve:
|
|
|
|
args:
|
|
|
|
- type: number
|
|
|
|
- type: function
|
2023-01-20 15:21:20 -05:00
|
|
|
# Processs
|
2023-01-29 20:16:17 -05:00
|
|
|
process.args:
|
|
|
|
property: read-only
|
|
|
|
process.cwd:
|
|
|
|
property: read-only
|
|
|
|
process.env:
|
|
|
|
property: new-fields
|
2023-01-18 20:47:14 -05:00
|
|
|
process.exit:
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: number
|
|
|
|
process.spawn:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
- required: false
|
|
|
|
type: table
|
2023-01-29 20:16:17 -05:00
|
|
|
- required: false
|
|
|
|
type: table
|
2023-02-06 00:13:12 -05:00
|
|
|
# Stdio
|
|
|
|
stdio.color:
|
|
|
|
must_use: true
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
stdio.style:
|
|
|
|
must_use: true
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
console.format:
|
|
|
|
must_use: true
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
stdio.write:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
stdio.ewrite:
|
|
|
|
args:
|
|
|
|
- type: string
|
2023-02-06 12:59:48 -05:00
|
|
|
stdio.prompt:
|
|
|
|
must_use: true
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: string
|
|
|
|
- required: false
|
|
|
|
type: string
|
|
|
|
- required: false
|
|
|
|
type: string | boolean | table
|
2023-01-21 13:33:33 -05:00
|
|
|
# Task
|
2023-01-22 23:00:09 -05:00
|
|
|
task.cancel:
|
2023-01-29 20:16:17 -05:00
|
|
|
args:
|
|
|
|
- type: thread
|
2023-01-22 23:00:09 -05:00
|
|
|
task.defer:
|
|
|
|
args:
|
|
|
|
- type: thread | function
|
2023-01-23 20:59:57 -05:00
|
|
|
- type: "..."
|
2023-01-22 23:00:09 -05:00
|
|
|
task.delay:
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: number
|
|
|
|
- type: thread | function
|
2023-01-23 20:59:57 -05:00
|
|
|
- type: "..."
|
2023-01-22 23:00:09 -05:00
|
|
|
task.spawn:
|
|
|
|
args:
|
|
|
|
- type: thread | function
|
2023-01-23 20:59:57 -05:00
|
|
|
- type: "..."
|
2023-01-22 23:00:09 -05:00
|
|
|
task.wait:
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: number
|
2023-02-05 22:25:36 -05:00
|
|
|
# Misc
|
|
|
|
print:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
info:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
warn:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
error:
|
|
|
|
args:
|
|
|
|
- type: any
|
|
|
|
- required: false
|
|
|
|
type: number
|