2023-02-06 18:02:13 +00:00
|
|
|
# Lune v0.3.0
|
2023-01-19 01:47:14 +00:00
|
|
|
---
|
|
|
|
globals:
|
|
|
|
# FS (filesystem)
|
|
|
|
fs.readFile:
|
2023-01-30 01:16:17 +00:00
|
|
|
must_use: true
|
2023-01-19 01:47:14 +00:00
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.readDir:
|
2023-01-30 01:16:17 +00:00
|
|
|
must_use: true
|
2023-01-19 01:47:14 +00: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-30 01:16:17 +00:00
|
|
|
must_use: true
|
2023-01-19 01:47:14 +00:00
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
fs.isDir:
|
2023-01-30 01:16:17 +00:00
|
|
|
must_use: true
|
2023-01-19 01:47:14 +00:00
|
|
|
args:
|
|
|
|
- type: string
|
2023-01-19 22:56:12 +00:00
|
|
|
# Net (networking)
|
|
|
|
net.jsonEncode:
|
2023-01-30 01:16:17 +00:00
|
|
|
must_use: true
|
2023-01-19 01:47:14 +00:00
|
|
|
args:
|
|
|
|
- type: any
|
|
|
|
- required: false
|
|
|
|
type: boolean
|
2023-01-19 22:56:12 +00:00
|
|
|
net.jsonDecode:
|
2023-01-30 01:16:17 +00:00
|
|
|
must_use: true
|
2023-01-19 01:47:14 +00:00
|
|
|
args:
|
|
|
|
- type: string
|
2023-01-19 22:56:12 +00:00
|
|
|
net.request:
|
|
|
|
args:
|
|
|
|
- type: any
|
2023-02-04 00:27:56 +00:00
|
|
|
net.serve:
|
|
|
|
args:
|
|
|
|
- type: number
|
|
|
|
- type: function
|
2023-01-20 20:21:20 +00:00
|
|
|
# Processs
|
2023-01-30 01:16:17 +00:00
|
|
|
process.args:
|
|
|
|
property: read-only
|
|
|
|
process.cwd:
|
|
|
|
property: read-only
|
|
|
|
process.env:
|
|
|
|
property: new-fields
|
2023-01-19 01:47:14 +00:00
|
|
|
process.exit:
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: number
|
|
|
|
process.spawn:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
- required: false
|
|
|
|
type: table
|
2023-01-30 01:16:17 +00:00
|
|
|
- required: false
|
|
|
|
type: table
|
2023-02-06 05:13:12 +00: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 17:59:48 +00:00
|
|
|
stdio.prompt:
|
|
|
|
must_use: true
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: string
|
|
|
|
- required: false
|
|
|
|
type: string
|
|
|
|
- required: false
|
|
|
|
type: string | boolean | table
|
2023-01-21 18:33:33 +00:00
|
|
|
# Task
|
2023-01-23 04:00:09 +00:00
|
|
|
task.cancel:
|
2023-01-30 01:16:17 +00:00
|
|
|
args:
|
|
|
|
- type: thread
|
2023-01-23 04:00:09 +00:00
|
|
|
task.defer:
|
|
|
|
args:
|
|
|
|
- type: thread | function
|
2023-01-24 01:59:57 +00:00
|
|
|
- type: "..."
|
2023-01-23 04:00:09 +00:00
|
|
|
task.delay:
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: number
|
|
|
|
- type: thread | function
|
2023-01-24 01:59:57 +00:00
|
|
|
- type: "..."
|
2023-01-23 04:00:09 +00:00
|
|
|
task.spawn:
|
|
|
|
args:
|
|
|
|
- type: thread | function
|
2023-01-24 01:59:57 +00:00
|
|
|
- type: "..."
|
2023-01-23 04:00:09 +00:00
|
|
|
task.wait:
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: number
|
2023-02-06 03:25:36 +00:00
|
|
|
# Misc
|
|
|
|
print:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
info:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
warn:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
error:
|
|
|
|
args:
|
|
|
|
- type: any
|
|
|
|
- required: false
|
|
|
|
type: number
|