MCPcopy Index your code
hub / github.com/dagger/dagger / env_variable

Method env_variable

sdk/python/src/dagger/client/gen.py:2034–2060  ·  view source on GitHub ↗

Retrieves the value of the specified persistent environment variable. Parameters ---------- name: The name of the environment variable to retrieve (e.g., "PATH"). Returns ------- str | None The `String` scalar type represents

(self, name: str)

Source from the content-addressed store, hash-verified

2032 return await _ctx.execute(list[str])
2033
2034 async def env_variable(self, name: str) -> str | None:
2035 """Retrieves the value of the specified persistent environment variable.
2036
2037 Parameters
2038 ----------
2039 name:
2040 The name of the environment variable to retrieve (e.g., "PATH").
2041
2042 Returns
2043 -------
2044 str | None
2045 The `String` scalar type represents textual data, represented as
2046 UTF-8 character sequences. The String type is most often used by
2047 GraphQL to represent free-form human-readable text.
2048
2049 Raises
2050 ------
2051 ExecuteTimeoutError
2052 If the time to execute the query exceeds the configured timeout.
2053 QueryError
2054 If the API returns an error.
2055 """
2056 _args = [
2057 Arg("name", name),
2058 ]
2059 _ctx = self._select("envVariable", _args)
2060 return await _ctx.execute(str | None)
2061
2062 async def env_variables(self) -> list["EnvVariable"]:
2063 """Retrieves the list of persistent environment variables configured on

Callers

nothing calls this directly

Calls 3

ArgClass · 0.90
_selectMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected