Type Alias: VersionIntegrationConfiguration
VersionIntegrationConfiguration:
Omit<ApplicationFlag<CommandContext>,"name"|"aliases"|"global"|"run"> &object
Options for customizing the behavior of the version integration.
Type declaration
alias?
readonlyoptionalalias:AvailableAlias|false
Single-character shorthand alias for this flag, defaults to v if not provided.
Set to false to disable the alias entirely.
hook?
readonlyoptionalhook: keyofLifecycleHooks<CommandContext>
If getLatestVersion is provided in VersionIntegrationConfiguration.info, this option specifies when version check should run.
Defaults to app:start.
info
readonlyinfo:VersionInfo
Values or callbacks to provide the version information for this application. See VersionInfo for more details.
If getLatestVersion is provided, this integration will register a lifecycle hook (see VersionIntegrationConfiguration.hook)
to check for the latest version of the application and print a warning to stderr if the current version is not the latest.