Skip to main content
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
Re-export
import { Command } from "https://deno.land/x/cliffy@v0.25.1/mod.ts";

Read and validate environment variables.

Parameters

envVars: Array<IEnvVar>

env vars defined by the command

optional
validate = [UNSUPPORTED]

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

Returns

Promise<Record<string, unknown>>