Started working on more package docs
This commit is contained in:
parent
f51c3ce891
commit
84702267df
9 changed files with 91 additions and 12 deletions
17
_docs/mod/os.md
Normal file
17
_docs/mod/os.md
Normal 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")
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue