Sha256: 5e58cd47b162e9f004bc9224a29c2ec3cf9e1a3d4c910154ce53742f828af91f

Contents?: true

Size: 811 Bytes

Versions: 7

Compression:

Stored size: 811 Bytes

Contents

@since(version = 0.2.0)
interface 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.
  @since(version = 0.2.0)
  get-environment: func() -> list<tuple<string, string>>;

  /// Get the POSIX-style arguments to the program.
  @since(version = 0.2.0)
  get-arguments: func() -> list<string>;

  /// Return a path that programs should use as their initial current working
  /// directory, interpreting `.` as shorthand for this.
  @since(version = 0.2.0)
  initial-cwd: func() -> option<string>;
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/wasmtime-wasi-29.0.0/wit/deps/cli/environment.wit
wasmtime-28.0.0 ./ext/cargo-vendor/wasmtime-wasi-28.0.0/wit/deps/cli/environment.wit
wasmtime-27.0.0 ./ext/cargo-vendor/wasmtime-wasi-27.0.0/wit/deps/cli/environment.wit
wasmtime-26.0.0 ./ext/cargo-vendor/wasmtime-wasi-26.0.0/wit/deps/cli/environment.wit
wasmtime-25.0.2 ./ext/cargo-vendor/wasmtime-wasi-25.0.2/wit/deps/cli/environment.wit
wasmtime-25.0.1 ./ext/cargo-vendor/wasmtime-wasi-25.0.1/wit/deps/cli/environment.wit
wasmtime-25.0.0 ./ext/cargo-vendor/wasmtime-wasi-25.0.0/wit/deps/cli/environment.wit