class Os
class Os
lib/os.tya:2
Os provides the os/Os standard library API.
Source
# Os provides the os/Os standard library API.
class Os
# Os.args returns the current process arguments.
# @return Any the resulting value.
static args: ->
args()
# Os.chdir changes the current working directory.
# @param path String path value.
# @return Any the resulting value.
static chdir: path ->
chdir(path)
# Os.cwd returns the current working directory.
# @return Any the resulting value.
static cwd: ->
cwd()
# Os.env returns the value of an environment variable or nil.
# @param name String name value.
# @return Any the resulting value.
static env: name ->
env(name)
# Os.environ returns the current process environment as a dictionary.
# @return Any the resulting value.
static environ: ->
environ()
# Os.exit terminates the current process with code.
# @param code Int code value.
# @return Any the resulting value.
static exit: code ->
exit(code)
# Os.setenv sets an environment variable for this process and children.
# @param name String name value.
# @param value String value value.
# @return Any the resulting value.
static setenv: name, value ->
setenv(name, value)
# Os.unsetenv removes an environment variable for this process and children.
# @param name String name value.
# @return Any the resulting value.
static unsetenv: name ->
unsetenv(name)
# Os.args provides the os/Os standard library operation.
# @return Any the resulting value.
args: ->
args()
# Os.chdir provides the os/Os standard library operation.
# @param path String path value.
# @return Any the resulting value.
chdir: path ->
chdir(path)
# Os.cwd provides the os/Os standard library operation.
# @return Any the resulting value.
cwd: ->
cwd()
# Os.env provides the os/Os standard library operation.
# @param name String name value.
# @return Any the resulting value.
env: name ->
env(name)
# Os.environ returns the current process environment as a dictionary.
# @return Any the resulting value.
environ: ->
environ()
# Os.exit provides the os/Os standard library operation.
# @param code Int code value.
# @return Any the resulting value.
exit: code ->
exit(code)
# Os.setenv sets an environment variable for this process and children.
# @param name String name value.
# @param value String value value.
# @return Any the resulting value.
setenv: name, value ->
setenv(name, value)
# Os.unsetenv removes an environment variable for this process and children.
# @param name String name value.
# @return Any the resulting value.
unsetenv: name ->
unsetenv(name)
Static Methods
args
static Os.args()
lib/os.tya:5
Os.args returns the current process arguments.
Source
# Os.args returns the current process arguments.
# @return Any the resulting value.
static args: ->
args()
chdir
static Os.chdir(path)
lib/os.tya:11
Os.chdir changes the current working directory.
Source
# Os.chdir changes the current working directory.
# @param path String path value.
# @return Any the resulting value.
static chdir: path ->
chdir(path)
cwd
static Os.cwd()
lib/os.tya:16
Os.cwd returns the current working directory.
Source
# Os.cwd returns the current working directory.
# @return Any the resulting value.
static cwd: ->
cwd()
env
static Os.env(name)
lib/os.tya:22
Os.env returns the value of an environment variable or nil.
Source
# Os.env returns the value of an environment variable or nil.
# @param name String name value.
# @return Any the resulting value.
static env: name ->
env(name)
environ
static Os.environ()
lib/os.tya:27
Os.environ returns the current process environment as a dictionary.
Source
# Os.environ returns the current process environment as a dictionary.
# @return Any the resulting value.
static environ: ->
environ()
exit
static Os.exit(code)
lib/os.tya:33
Os.exit terminates the current process with code.
Source
# Os.exit terminates the current process with code.
# @param code Int code value.
# @return Any the resulting value.
static exit: code ->
exit(code)
setenv
static Os.setenv(name, value)
lib/os.tya:40
Os.setenv sets an environment variable for this process and children.
Source
# Os.setenv sets an environment variable for this process and children.
# @param name String name value.
# @param value String value value.
# @return Any the resulting value.
static setenv: name, value ->
setenv(name, value)
unsetenv
static Os.unsetenv(name)
lib/os.tya:46
Os.unsetenv removes an environment variable for this process and children.
Source
# Os.unsetenv removes an environment variable for this process and children.
# @param name String name value.
# @return Any the resulting value.
static unsetenv: name ->
unsetenv(name)
Methods
args
Os.args()
lib/os.tya:51
Os.args provides the os/Os standard library operation.
Source
# Os.args provides the os/Os standard library operation.
# @return Any the resulting value.
args: ->
args()
chdir
Os.chdir(path)
lib/os.tya:57
Os.chdir provides the os/Os standard library operation.
Source
# Os.chdir provides the os/Os standard library operation.
# @param path String path value.
# @return Any the resulting value.
chdir: path ->
chdir(path)
cwd
Os.cwd()
lib/os.tya:62
Os.cwd provides the os/Os standard library operation.
Source
# Os.cwd provides the os/Os standard library operation.
# @return Any the resulting value.
cwd: ->
cwd()
env
Os.env(name)
lib/os.tya:68
Os.env provides the os/Os standard library operation.
Source
# Os.env provides the os/Os standard library operation.
# @param name String name value.
# @return Any the resulting value.
env: name ->
env(name)
environ
Os.environ()
lib/os.tya:73
Os.environ returns the current process environment as a dictionary.
Source
# Os.environ returns the current process environment as a dictionary.
# @return Any the resulting value.
environ: ->
environ()
exit
Os.exit(code)
lib/os.tya:79
Os.exit provides the os/Os standard library operation.
Source
# Os.exit provides the os/Os standard library operation.
# @param code Int code value.
# @return Any the resulting value.
exit: code ->
exit(code)
setenv
Os.setenv(name, value)
lib/os.tya:86
Os.setenv sets an environment variable for this process and children.
Source
# Os.setenv sets an environment variable for this process and children.
# @param name String name value.
# @param value String value value.
# @return Any the resulting value.
setenv: name, value ->
setenv(name, value)
unsetenv
Os.unsetenv(name)
lib/os.tya:92
Os.unsetenv removes an environment variable for this process and children.
Source
# Os.unsetenv removes an environment variable for this process and children.
# @param name String name value.
# @return Any the resulting value.
unsetenv: name ->
unsetenv(name)