feat(v1.4.1): add native proposal module, Lover Accept Checker AI, and modules documentation catalog
This commit is contained in:
1 parent
4895c201c1
commit
b7ae6c9725
20 files changed
+600
-34
No files matched your search
@@ -0,0 +1,23 @@
|
||||
# 💻 AiraLang `os` Module
|
||||
> **Operating System Interaction & Shell Commands**
|
||||
|
||||
## Import
|
||||
```aira
|
||||
import "os";
|
||||
```
|
||||
|
||||
## Methods
|
||||
- `os.cmd(command)` / `os.system(command)`: Execute shell command and return stdout.
|
||||
- `os.env(name, [default])`: Read environment variable.
|
||||
- `os.platform()`: Return host OS platform (linux, darwin, win32).
|
||||
- `os.cwd()`: Current working directory.
|
||||
- `os.listdir([path])`: List files and directories.
|
||||
- `os.mkdir(path)`: Create directory recursively.
|
||||
|
||||
## Example
|
||||
```aira
|
||||
import "os";
|
||||
|
||||
say "OS: " + os.platform();
|
||||
say "Files: ", os.listdir(".");
|
||||
```
|
||||
Reference in new issue
Block a user