2023-01-28 04:51:44 +00:00
|
|
|
# Lune v0.2.0
|
2023-01-19 01:47:14 +00:00
|
|
|
---
|
|
|
|
globals:
|
2023-01-20 03:10:34 +00:00
|
|
|
# Console
|
|
|
|
console.resetColor:
|
2023-01-30 01:16:17 +00:00
|
|
|
args: []
|
2023-01-20 03:10:34 +00:00
|
|
|
console.setColor:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
console.resetStyle:
|
2023-01-30 01:16:17 +00:00
|
|
|
args: []
|
2023-01-20 03:10:34 +00:00
|
|
|
console.setStyle:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
console.format:
|
2023-01-30 01:16:17 +00:00
|
|
|
must_use: true
|
2023-01-20 03:10:34 +00:00
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
console.log:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
console.info:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
console.warn:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
|
|
|
console.error:
|
|
|
|
args:
|
|
|
|
- type: "..."
|
2023-01-19 01:47:14 +00:00
|
|
|
# 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-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-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
|