phntmxyz_bump_version_sidekick_plugin library

Provides a sidekick command that bumps the version in pubspec.yaml.

Enums

VersionBumpType
What kind of Version bump to perform

Extensions

BumpVersion on Version

Functions

commitFileModifications(FutureOr<void> block(), {required String commitMessage}) Future<void>
Commits only the file changes that have been done in block
readPubspecVersion(File pubspecFile) → Version?
Reads the version from the pubspec.yaml file
setPubspecVersion(File pubspecFile, Version version) → void
Sets the version in the pubspec.yaml file

Typedefs

FileModification = FutureOr<void> Function(DartPackage package, Version oldVersion, Version newVersion)