pub_check_updates 0.0.1

  • Readme
  • Changelog
  • Installing
  • 42

pub-check-updates #

Install #

pub global activate --source git

NOTE: if you see next warning, just follow it's suggestions

Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path. You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.): export PATH="$PATH":"$HOME/.pub-cache/bin"

Then you can run pcu in your terminal




  • dependency_overrides
  • cli args
  • auto update pubspec.yaml file
  • ci & publish to

0.0.1 #

  • finish basic features

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate pub_check_updates

2. Use it

The package has the following executables:

$ pcu

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  pub_check_updates: ^0.0.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:pub_check_updates/analysis.dart';
import 'package:pub_check_updates/main.dart';
import 'package:pub_check_updates/utils.dart';
import 'package:pub_check_updates/version_manager.dart';
import 'package:pub_check_updates/version_util.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 26, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health issues and suggestions

Document public APIs. (-1 points)

32 out of 32 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/version_manager.dart. (-0.50 points)

Analysis of lib/version_manager.dart reported 1 hint:

line 36 col 5: Use rethrow to rethrow a caught exception.

Format bin/main.dart.

Run dartfmt to format bin/main.dart.

Format lib/analysis.dart.

Run dartfmt to format lib/analysis.dart.

Format lib/main.dart.

Run dartfmt to format lib/main.dart.

Format lib/utils.dart.

Run dartfmt to format lib/utils.dart.

Maintenance suggestions

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and pub_check_updates.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
args ^1.5.2 1.6.0
dio ^3.0.8 3.0.9
path ^1.6.4 1.6.4
pub_semver ^1.4.2 1.4.4
yaml ^2.2.0 2.2.0
Transitive dependencies
charcode 1.1.3
collection 1.14.12
http_parser 3.1.4
meta 1.1.8
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6