Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/habitra/deps.ts>Command#parseEnvVars

Command line tool for HabiTra
Latest
method Command.prototype.parseEnvVars
Re-export
import { Command } from "https://deno.land/x/habitra@v0.3.0/deps.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>>