wipe
This commit is contained in:
parent
3450aa3168
commit
77c3f08063
4 changed files with 3 additions and 3 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
|
@ -47,7 +47,7 @@ class InstallCommand extends Command {
|
||||||
@override
|
@override
|
||||||
run() async {
|
run() async {
|
||||||
if (argResults['wipe']) {
|
if (argResults['wipe']) {
|
||||||
if (await installRepo.exists()) await installRepo.delete();
|
if (await installRepo.exists()) await installRepo.delete(recursive: true);
|
||||||
} else if (argResults['list']) {
|
} else if (argResults['list']) {
|
||||||
var addons = await list();
|
var addons = await list();
|
||||||
print('${addons.length} add-on(s) installed:');
|
print('${addons.length} add-on(s) installed:');
|
||||||
|
|
|
@ -3,7 +3,7 @@ import 'dart:convert';
|
||||||
import 'package:http/src/base_client.dart' as http;
|
import 'package:http/src/base_client.dart' as http;
|
||||||
import 'package:pub_semver/pub_semver.dart';
|
import 'package:pub_semver/pub_semver.dart';
|
||||||
|
|
||||||
final Version PACKAGE_VERSION = new Version(1, 2, 0, build: '4');
|
final Version PACKAGE_VERSION = new Version(1, 2, 0, build: '5');
|
||||||
Future<Version> fetchCurrentVersion(http.BaseClient client) async {
|
Future<Version> fetchCurrentVersion(http.BaseClient client) async {
|
||||||
var response =
|
var response =
|
||||||
await client.get('https://pub.dartlang.org/api/packages/angel_cli');
|
await client.get('https://pub.dartlang.org/api/packages/angel_cli');
|
||||||
|
|
|
@ -2,7 +2,7 @@ author: "Tobe O <thosakwe@gmail.com>"
|
||||||
description: "Command-line tools for the Angel framework."
|
description: "Command-line tools for the Angel framework."
|
||||||
homepage: "https://github.com/angel-dart/angel_cli"
|
homepage: "https://github.com/angel-dart/angel_cli"
|
||||||
name: "angel_cli"
|
name: "angel_cli"
|
||||||
version: 1.2.0+4
|
version: 1.2.0+5
|
||||||
dependencies:
|
dependencies:
|
||||||
# analyzer: "^0.29.0"
|
# analyzer: "^0.29.0"
|
||||||
args: ^0.13.4
|
args: ^0.13.4
|
||||||
|
|
Loading…
Reference in a new issue