https://github.com/lsaudon/pubspec_version_cli
A Command-Line Interface to change the version in pubspec.
https://github.com/lsaudon/pubspec_version_cli
dart flutter hacktoberfest pubspec
Last synced: 11 months ago
JSON representation
A Command-Line Interface to change the version in pubspec.
- Host: GitHub
- URL: https://github.com/lsaudon/pubspec_version_cli
- Owner: lsaudon
- License: mit
- Created: 2023-02-17T16:56:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T20:35:35.000Z (about 1 year ago)
- Last Synced: 2025-04-22T07:07:35.362Z (about 1 year ago)
- Topics: dart, flutter, hacktoberfest, pubspec
- Language: Dart
- Homepage:
- Size: 46.9 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Pubspec_version
[![Pub Version][pub_version_badge]][pub_package_link]
[![Pub Points][pub_points_badge]][pub_points_link]
[![License: MIT][license_badge]][license_link]
A Command-Line Interface to change the version in pubspec.
---
## Getting Started ๐
If the CLI application is available on [pub](https://pub.dev), activate globally via:
```sh
dart pub global activate pubspec_version_cli
```
## Usage
```sh
# Change the version in pubspec
pubspec_version change --version
```
## Running locally
```sh
dart pub global activate --source=path . && pubspec_version change example --version 0.0.1+1
```
## Running Tests with coverage ๐งช
To run all unit tests use the following command:
```sh
dart pub global activate coverage
dart test --coverage=coverage
dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info
```
To view the generated coverage report you can use [lcov](https://github.com/linux-test-project/lcov).
```sh
# Generate Coverage Report
genhtml coverage/lcov.info -o coverage/
# Open Coverage Report
open coverage/index.html
```
## Build version
```sh
dart run build_runner build -d
```
---
Generated by the [Very Good CLI][very_good_cli_link] ๐ค
[license_badge]: https://img.shields.io/github/license/lsaudon/pubspec_version_cli
[license_link]: https://img.shields.io/github/license/lsaudon/pubspec_version_cli
[very_good_cli_link]: https://github.com/VeryGoodOpenSource/very_good_cli
[pub_points_badge]: https://img.shields.io/pub/points/pubspec_version_cli
[pub_version_badge]: https://img.shields.io/pub/v/pubspec_version_cli
[pub_package_link]: https://pub.dev/packages/pubspec_version_cli
[pub_points_link]: https://pub.dev/packages/pubspec_version_cli/score