Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/leoafarias/cli_notify

Check pub.dev for updates for your Dart CLI and prints update information.
https://github.com/leoafarias/cli_notify

cli dart notification

Last synced: 1 day ago
JSON representation

Check pub.dev for updates for your Dart CLI and prints update information.

Awesome Lists containing this project

README

        

# cli_notify

Check pub.dev for updates for your Dart CLI and prints update information.

![Update notification](https://raw.githubusercontent.com/leoafarias/cli_notify/main/assets/screenshot.png)

# Install

```bash
dart pub add cli_notify
```

## Usage

Notify users that there is an update

```dart
import 'package:cli_notify/cli_notify.dart';

// Current version of your CLI
final packageName = 'package-name';
final currentVersion = '1.0.0';
void main() async {
await Notify(
packageName: packageName,
currentVersion: currentVersion,
).update();
}

```