import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.2/command/command.ts";
Register a global environment variable.
Parameters
name: N
Name of the environment variable.
options: Omit<EnvVarOptions, "value"> & { global: true; required?: R; prefix?: P; value?: EnvVarValueHandler<MapTypes<ValueOf<G>>, V>; }
Environment variable options.
Register an environment variable.
Type Parameters
TMappedEnvVar extends MapValue<TEnvVar, TMappedValue>
optional
TRequired extends EnvVarOptions["required"] = undefinedoptional
TPrefix extends EnvVarOptions["prefix"] = undefinedParameters
name: TNameAndValue
Name of the environment variable.
optional
options: Omit<EnvVarOptions, "value"> & { required?: TRequired; prefix?: TPrefix; value?: EnvVarValueHandler<MapTypes<ValueOf<TEnvVar>>, TMappedValue>; }Environment variable options.
Returns
Command<TParentCommandGlobals, TParentCommandTypes, Merge<TCommandOptions, TMappedEnvVar>, TCommandArguments, TCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommand>