Skip to content

Commit

Permalink
fix: remove init hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 25, 2023
1 parent 45e1742 commit 5c8a516
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 25 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@
"@oclif/plugin-command-snapshot",
"@salesforce/plugin-command-reference"
],
"hooks": {
"init": [
"./lib/hooks/init/init_doctor.js"
]
},
"topics": {
"info": {
"description": "Access Salesforce CLI information from the command line.",
Expand Down
3 changes: 2 additions & 1 deletion src/commands/doctor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export default class Doctor extends SfCommand<SfDoctorDiagnosis> {

public async run(): Promise<SfDoctorDiagnosis> {
const { flags } = await this.parse(Doctor);
this.doctor = SFDoctor.getInstance();
// this.doctor = SFDoctor.getInstance();
this.doctor = SFDoctor.init(this.config);
const lifecycle = Lifecycle.getInstance();

this.outputDir = pathResolve(flags['output-dir'] ?? process.cwd());
Expand Down
19 changes: 0 additions & 19 deletions src/hooks/init/init_doctor.ts

This file was deleted.

0 comments on commit 5c8a516

Please sign in to comment.