lune/lune.yml

135 lines
2.2 KiB
YAML
Raw Normal View History

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
# 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
net.jsonDecode:
2023-01-30 01:16:17 +00:00
must_use: true
2023-01-19 01:47:14 +00:00
args:
- type: string
net.request:
args:
- type: any
net.serve:
args:
- type: number
- type: function
# 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
- type: "..."
2023-01-23 04:00:09 +00:00
task.delay:
args:
- required: false
type: number
- type: thread | function
- type: "..."
2023-01-23 04:00:09 +00:00
task.spawn:
args:
- type: thread | function
- type: "..."
2023-01-23 04:00:09 +00:00
task.wait:
args:
- required: false
type: number
# Misc
print:
args:
- type: "..."
info:
args:
- type: "..."
warn:
args:
- type: "..."
error:
args:
- type: any
- required: false
type: number