From 30990fc63ef9d32e46ae055927e88b6cbacd2878 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Mon, 31 Dec 2018 11:09:46 -0500 Subject: [PATCH] fully deprecate install command --- CHANGELOG.md | 3 +++ lib/src/commands/install.dart | 6 ++++++ pubspec.yaml | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8dd9de3..9a1c82e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.1.0 +* Deprecate `angel install`. + # 2.0.1 * `deploy systemd` now has an `--install` option, where you can immediately spawn the service. diff --git a/lib/src/commands/install.dart b/lib/src/commands/install.dart index 691de76..d7a9ec3 100644 --- a/lib/src/commands/install.dart +++ b/lib/src/commands/install.dart @@ -47,6 +47,12 @@ class InstallCommand extends Command { @override run() async { + print(yellow.wrap( + 'WARNING: The `install` command is no longer considered necessary, and has been deprecated.\n' + 'Expect it to be removed in an upcoming release.\n\n' + 'See here: https://github.com/angel-dart/install.git\n\n' + 'To stop seeing this, downgrade to `package:angel_cli@<=2.0.0`.')); + if (argResults['wipe'] as bool) { if (await installRepo.exists()) await installRepo.delete(recursive: true); } else if (argResults['list'] as bool) { diff --git a/pubspec.yaml b/pubspec.yaml index f9f565c..6c7377c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ author: Tobe O description: Command-line tools for the Angel framework. homepage: https://github.com/angel-dart/angel_cli name: angel_cli -version: 2.0.0 +version: 2.1.0 dependencies: analyzer: ">=0.32.0" args: ^1.0.0