lune/lune.yml

139 lines
2.3 KiB
YAML
Raw Normal View History

2023-02-11 23:39:59 +01:00
# Lune v0.4.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
# 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
net.jsonDecode:
2023-01-29 20:16:17 -05:00
must_use: true
2023-01-18 20:47:14 -05:00
args:
- type: string
net.request:
args:
2023-02-11 23:29:17 +01:00
- type: string | table
net.socket:
must_use: true
args:
- type: string
net.serve:
args:
- type: number
2023-02-11 22:40:14 +01:00
- type: function | table
# 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
- type: "..."
2023-01-22 23:00:09 -05:00
task.delay:
args:
- required: false
type: number
- type: thread | function
- type: "..."
2023-01-22 23:00:09 -05:00
task.spawn:
args:
- type: thread | function
- type: "..."
2023-01-22 23:00:09 -05: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