An open API service indexing awesome lists of open source software.

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.

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