blob: 421bba3643a14d113c457a36803f470676db8dee [file] [log] [blame]
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:pub_cache/pub_cache.dart';
void main(List<String> args) {
PubCache cache = new PubCache();
var apps = cache.getGlobalApplications();
print('${apps.length} activated applications:');
apps.forEach((app) {
print(' ${app}');
});
var packages = cache.getCachedPackages();
print('\n${packages.length} packages in cache:');
packages.forEach((pkg) {
print(' ${pkg}');
});
}