Skip to content

Commit

Permalink
chore(doctor): deprecate ionic doctor command (#4907)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored Sep 12, 2022
1 parent f34da62 commit ffd1960
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@ionic/cli/src/commands/doctor/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`);
}
Expand Down

0 comments on commit ffd1960

Please sign in to comment.