Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>command.Command#parseEnvVars

Sync posts from Mastodon into FeoBlog
Latest
method command.Command.prototype.parseEnvVars
Re-export
import { command } from "https://deno.land/x/feomasto@v1.0.1/priv/deps.ts";
const { Command } = command;

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>