Module

x/lume/deps/cliffy.ts>Command#parseEnvVars

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
method Command.prototype.parseEnvVars
import { Command } from "https://dotland.deno.dev/x/lume@v1.13.2/deps/cliffy.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>