Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/leoafarias/cli_notify
- Owner: leoafarias
- License: mit
- Created: 2021-05-06T22:13:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-05T03:15:13.000Z (over 1 year ago)
- Last Synced: 2023-08-20T21:35:52.612Z (about 1 year ago)
- Topics: cli, dart, notification
- Language: Dart
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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();
}```