Skip to main content
Module

x/dyr/deps.ts>Command#parseEnvVars

Access Yr's weather API and Nominatim's API with Deno
Go to Latest
method Command.prototype.parseEnvVars
Re-export
import { Command } from "https://deno.land/x/dyr@v1.3.4/deps.ts";

Read and validate environment variables.

Parameters

ctx: ParseContext

Parse context.

envVars: Array<EnvVar>

env vars defined by the command.

optional
validate = [UNSUPPORTED]

when true, throws an error if a required env var is missing.

Returns

Promise<void>