import { type VersionHandler } from "https://deno.land/x/cliffy@v1.0.0-rc.2/command/types.ts";
Version callback method to print the version.
Invoked by the --help
option command and the .getVersion()
and .showHelp()
methods.
Type Parameters
optional
TArguments extends Array<unknown> = TOptions extends number ? any : []optional
TGlobals extends Record<string, any> | void = TOptions extends number ? any : voidoptional
TParentGlobals extends Record<string, any> | void = TOptions extends number ? any : voidoptional
TTypes extends Record<string, any> | void = TOptions extends number ? any : voidoptional
TGlobalTypes extends Record<string, any> | void = TOptions extends number ? any : voidoptional
TParentTypes extends Record<string, any> | void = TOptions extends number ? any : voidoptional
TCommand extends Command<TParentGlobals, TParentTypes, TOptions, TArguments, TGlobals, TTypes, TGlobalTypes, TParentCommand> = Command<TParentGlobals, TParentTypes, TOptions, TArguments, TGlobals, TTypes, TGlobalTypes, TParentCommand>