Module

x/cliffy/mod.ts>Command#parseEnvVars

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.parseEnvVars
import { Command } from "https://dotland.deno.dev/x/cliffy@v0.25.5/mod.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>