You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/std/env/init.md
+4-38Lines changed: 4 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ A stdlib to interact with the script's running environment.
14
14
<h4>
15
15
16
16
```luau
17
-
args: {string},
17
+
args: {string},
18
18
```
19
19
20
20
</h4>
@@ -67,52 +67,18 @@ Errors if the `cwd` doesn't exist or otherwise isn't accessible (permission deni
67
67
68
68
---
69
69
70
-
### env.getvar
70
+
### env.vars
71
71
72
72
<h4>
73
73
74
74
```luau
75
-
function env.getvar(key: string) -> string?,
75
+
vars: typeof(require("@self/vars"))
76
76
```
77
77
78
78
</h4>
79
79
80
-
Gets an environment variable in the current process.
81
-
82
-
---
83
-
84
-
### env.setvar
85
-
86
-
<h4>
87
-
88
-
```luau
89
-
function env.setvar(key: string, value: string) -> string,
90
-
```
91
-
92
-
</h4>
93
-
94
-
Sets an environment variable in the current process.
95
-
96
-
Note, this function is **unsafe** in multithreaded contexts on Linux.
97
-
98
-
---
99
-
100
-
### env.removevar
101
-
102
-
<h4>
103
-
104
-
```luau
105
-
function env.removevar(key: string) -> nil,
106
-
```
107
-
108
-
</h4>
109
-
110
-
Removes an environment variable in the current process.
111
-
112
-
Note, this function is **unsafe** in multithreaded contexts on Linux.
113
-
114
80
---
115
81
116
-
Autogenerated from [std/env.luau](/.seal/typedefs/std/env.luau).
82
+
Autogenerated from [std/env/init.luau](/.seal/typedefs/std/env/init.luau).
117
83
118
84
*seal* is best experienced with inline, in-editor documentation. Please see the linked typedefs file if this documentation is confusing, too verbose, or inaccurate.
0 commit comments