pub_release library

Classes

Git
Release
SimpleGitHub
Version
A parsed semantic version number.

Properties

packageVersion String
GENERATED BY pub_release do not modify. pub_release version
getter/setter pair

Functions

addAsset(SimpleGitHub ghr, Release release, {required String assetPath, String? mimeType}) → void
Uploads the file at assetPath to git hub against the given release. If mimeType is not supplied then the extension of the assetPath is used to determine the mimeType.
addExecutableAsset(SimpleGitHub ghr, Release release, String script) → void
addExecutablesAsAssets(SimpleGitHub ghr, PubSpec pubspec, Release release) → void
askForVersion(Version currentVersion) Version?
Ask the user to select the new version no. Pass in the current currentVersion number.
confirmVersion(Version? version) Version?
Ask the user to confirm the selected version no.
createRelease({required String username, required String apiToken, required String owner, required String repository}) → void
findPubSpec({String? startingDir}) String?
Returns the path to the pubspec.yaml. startingDir is the directory we start searching from. We climb the path searching for the pubspec.yaml
updateLatestTag({required SimpleGitHub sgh, required PubSpec pubspec}) → void
update 'latest.
updateVersion(Version? newVersion, PubSpec pubspec, String pubspecPath) → void
Updates the pubspec.yaml and versiong.g.dart with the new version no.
version({required String pubspecPath}) Version?
Returns the version no. for the pubspec.yaml located at pubspecPath. Use findPubSpec to find the location.

Exceptions / Errors

GitHubException