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