Started working on more package docs

This commit is contained in:
Leon Mika 2025-01-19 10:11:55 +11:00
parent f51c3ce891
commit 84702267df
9 changed files with 91 additions and 12 deletions

17
_docs/mod/os.md Normal file
View file

@ -0,0 +1,17 @@
# OS Module
Functions for accessing the operating system.
### env
```
os:env NAME [DEFAULT]
```
Returns the value of the environment variable NAME. If no environment with NAME
is defined, then DEFAULT will be returned, if specified. Otherwise, nil will be
returned.
```
echo "User's home directory is: " (os:env "HOME")
```