purge_pub_cache

Last updated:

0 purchases

purge_pub_cache Image
purge_pub_cache Images
Add to Cart

Description:

purge pub cache

This is a dart command package to delete the old versions of the packages in pub-cache and keep only the latest version.

Installation
Usage
Execution example

Installation #
% [dart|flutter] pub global activate purge_pub_cache
copied to clipboard
Usage #
% [dart|flutter] pub global run purge_pub_cache
Usage: purge_pub_cache [option...]

Options:
-h, --help Show this usage.
--version Show app version and exit.
-d, --directory=<path> Specify a path to handle as pub_cache directory.
-y, --yes Assume YES to confirm the deletion.
-q, --quiet No outputs (--yes is assumed to be set).
-n, --dry-run Dry-run. Show the packages to delete and exit.
copied to clipboard
Execution example #
Suppose fooPackage has version 0.0.1, 0.0.2, 0.0.3 and barPackage has 1.8.0, 1.8.1, in pub-cache.
% pub global run purge_pub_cache
Using pub-cache directory: /home/foo/.pub-cache

Packages to be deleted:
fooPackage: 0.0.1, 0.0.2
barPackage: 1.8.0

Are you sure to delete these 3 packages? [y/N]: y
Deleting 3 packages... done.
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.