From ffd1960d28b0233f97b91b002d00c3ba1801bb8e Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Mon, 12 Sep 2022 12:03:18 -0500 Subject: [PATCH] chore(doctor): deprecate ionic doctor command (#4907) --- packages/@ionic/cli/src/commands/doctor/base.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/@ionic/cli/src/commands/doctor/base.ts b/packages/@ionic/cli/src/commands/doctor/base.ts index 980e0812c1..02525df9cc 100644 --- a/packages/@ionic/cli/src/commands/doctor/base.ts +++ b/packages/@ionic/cli/src/commands/doctor/base.ts @@ -30,6 +30,8 @@ export abstract class DoctorCommand extends Command { const tasks = this.createTaskChain(); const isLoggedIn = this.env.session.isLoggedIn(); + this.env.log.warn(`The ${input('ionic doctor')} command has been deprecated and will be removed in an upcoming major release of the Ionic CLI. Developers can safely remove any references to this command as many of the checks are no longer needed.`); + if (!isLoggedIn) { this.env.log.warn(`For best results, please make sure you're logged in to Ionic.\nSome issues can't be detected without authentication. Run:\n\n ${input('ionic login')}`); }