Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
method Command.prototype.parseEnvVars
Re-export
import { Command } from "https://deno.land/x/commit_genius@v0.1.0/deps.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>