Module spin_sdk.wit.imports.wasi_cli_environment_0_2_0

Functions

def get_arguments() ‑> List[str]
Expand source code
def get_arguments() -> List[str]:
    """
    Get the POSIX-style arguments to the program.
    """
    raise NotImplementedError

Get the POSIX-style arguments to the program.

def get_environment() ‑> List[Tuple[str, str]]
Expand source code
def get_environment() -> List[Tuple[str, str]]:
    """
    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.
    """
    raise NotImplementedError

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.

def initial_cwd() ‑> str | None
Expand source code
def initial_cwd() -> Optional[str]:
    """
    Return a path that programs should use as their initial current working
    directory, interpreting `.` as shorthand for this.
    """
    raise NotImplementedError

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