lune/lune.yml

96 lines
1.5 KiB
YAML
Raw Normal View History

# Lune v0.0.6
2023-01-19 01:47:14 +00:00
---
globals:
2023-01-20 03:10:34 +00:00
# Console
console.resetColor:
console.setColor:
args:
- type: string
console.resetStyle:
console.setStyle:
args:
- type: string
console.format:
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:
args:
- type: string
fs.readDir:
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:
args:
- type: string
fs.isDir:
args:
- type: string
# Net (networking)
net.jsonEncode:
2023-01-19 01:47:14 +00:00
args:
- type: any
- required: false
type: boolean
net.jsonDecode:
2023-01-19 01:47:14 +00:00
args:
- type: string
net.request:
args:
- type: any
# Processs
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-21 18:33:33 +00:00
# Task
2023-01-23 04:00:09 +00:00
task.cancel:
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