import { Command } from "https://deno.land/x/lume@v1.18.4/deps/cliffy.ts";
Type Parameters
TGlobalEnvVars extends TypedEnv<TNameAndValue, TPrefix, TCommandOptions, Merge<TParentCommandTypes, Merge<TCommandGlobalTypes, TCommandTypes>>, TRequired>
TMappedGlobalEnvVars extends MapValue<TGlobalEnvVars, TMappedValue>
optional
TRequired extends EnvVarOptions["required"] = undefinedoptional
TPrefix extends EnvVarOptions["prefix"] = undefinedParameters
name: TNameAndValue
optional
options: Omit<GlobalEnvVarOptions, "value"> & { required?: TRequired; prefix?: TPrefix; value?: EnvVarValueHandler<MapTypes<ValueOf<TGlobalEnvVars>>, TMappedValue>; }Returns
Command<TParentCommandGlobals, TParentCommandTypes, TCommandOptions, TCommandArguments, Merge<TCommandGlobals, TMappedGlobalEnvVars>, TCommandTypes, TCommandGlobalTypes, TParentCommand>