2023-01-19 20:08:38 +00:00
|
|
|
# Lune v0.0.2
|
2023-01-19 01:47:14 +00:00
|
|
|
---
|
|
|
|
globals:
|
|
|
|
# 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
|
2023-01-19 22:56:12 +00:00
|
|
|
# Net (networking)
|
|
|
|
net.jsonEncode:
|
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-19 01:47:14 +00:00
|
|
|
args:
|
|
|
|
- type: string
|
2023-01-19 22:56:12 +00:00
|
|
|
net.request:
|
|
|
|
args:
|
|
|
|
- type: any
|
2023-01-19 01:47:14 +00:00
|
|
|
# Process
|
|
|
|
process.getEnvVars:
|
|
|
|
process.getEnvVar:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
process.setEnvVar:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
- type: string
|
|
|
|
process.exit:
|
|
|
|
args:
|
|
|
|
- required: false
|
|
|
|
type: number
|
|
|
|
process.spawn:
|
|
|
|
args:
|
|
|
|
- type: string
|
|
|
|
- required: false
|
|
|
|
type: table
|