cli_notify
0.0.4, released 4 years ago by leoafarias.com
Check pub.dev for updates for your Dart CLI and print update information.
What it does
It checks pub.dev to see if a newer version of your Dart command-line tool is available. If an update exists, it prints notification details to the console.
AI-written summary of version 0.0.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Dart CLI tool and want to notify users of available updates
- You want a simple API to check pub.dev version info directly in your main function
Skip it when
- You are building a Flutter GUI or mobile application instead of a CLI
- You need complex offline-first caching for update checks
Strengths
- Simple and straightforward setup with minimal code
- Tailored specifically for Dart CLI packages
Weaknesses
- Very limited configuration options documented
- Relies entirely on network requests to pub.dev during CLI startup
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
import 'package:cli_notify/cli_notify.dart';
final packageName = 'package-name';
final currentVersion = '1.0.0';
void main() async {
await Notify(
packageName: packageName,
currentVersion: currentVersion,
).update();
}Alternatives
Packages that do the same job and could replace cli_notify.
- logger
An extensible logger for printing formatted logs with levels, custom filters, and printers.
83Compare - pub_release
Automates publishing Dart packages to pub.dev, handling version bump, git tags, changelog, and optional dry-run.
69Compare - device_preview_minus
A temporary alternative to device_preview with updated version dependencies.
67Compare - check_coverage
CLI tool that checks lcov coverage against a threshold
45Compare
Works with
Packages commonly used together with cli_notify: ones it builds on, ones built on it, and its own family.