Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opinecli/deps.ts>Command#env

Opine's application generator
Latest
method Command.prototype.env
Re-export
import { Command } from "https://deno.land/x/opinecli@2.0.0/deps.ts";

Add new environment variable.

Type Parameters

optional
G extends Record<string, unknown> | void = CG

Parameters

name: string

Name of the environment variable.

description: string

The description of the environment variable.

optional
options: IEnvVarOptions

Environment variable options.

Returns

Command<CO, CA, Merge<CG, MapOptionTypes<G>>, PG, P>

Type Parameters

optional
O extends Record<string, unknown> | void = CO

Parameters

name: string
description: string
optional
options: IEnvVarOptions

Returns

Command<Merge<CO, MapOptionTypes<O>>, CA, CG, PG, P>