mirror of
https://github.com/lune-org/lune.git
synced 2024-12-13 13:30:38 +00:00
55 lines
886 B
YAML
55 lines
886 B
YAML
---
|
|
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
|
|
# JSON
|
|
json.encode:
|
|
args:
|
|
- type: any
|
|
- required: false
|
|
type: boolean
|
|
json.decode:
|
|
args:
|
|
- type: string
|
|
# 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
|