Skip to main content
Module

x/cliffy/command/command.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://deno.land/x/cliffy@v1.0.0-rc.3/command/command.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>