mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 13:00:37 +00:00
80 lines
1.3 KiB
YAML
80 lines
1.3 KiB
YAML
# Lune v0.0.4
|
|
---
|
|
globals:
|
|
# 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: "..."
|
|
# 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:
|
|
args:
|
|
- type: any
|
|
- required: false
|
|
type: boolean
|
|
net.jsonDecode:
|
|
args:
|
|
- type: string
|
|
net.request:
|
|
args:
|
|
- type: any
|
|
# Processs
|
|
process.exit:
|
|
args:
|
|
- required: false
|
|
type: number
|
|
process.spawn:
|
|
args:
|
|
- type: string
|
|
- required: false
|
|
type: table
|
|
# Task
|
|
task.wait:
|
|
args:
|
|
- required: false
|
|
type: number
|