environment

package
v0.0.0-...-bc518a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package environment represents the imported interface "wasi:cli/environment@0.2.1".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArguments

func GetArguments() (result cm.List[string])

GetArguments represents the imported function "get-arguments".

Get the POSIX-style arguments to the program.

get-arguments: func() -> list<string>

func GetEnvironment

func GetEnvironment() (result cm.List[[2]string])

GetEnvironment represents the imported function "get-environment".

Get the POSIX-style environment variables.

Each environment variable is provided as a pair of string variable names and string value.

Morally, these are a value import, but until value imports are available in the component model, this import function should return the same values each time it is called.

get-environment: func() -> list<tuple<string, string>>

func InitialCWD

func InitialCWD() (result cm.Option[string])

InitialCWD represents the imported function "initial-cwd".

Return a path that programs should use as their initial current working directory, interpreting `.` as shorthand for this.

initial-cwd: func() -> option<string>

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL