@codacy/codacy-mcp 0.6.16 → 0.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli/MacCodacyCli.js +3 -13
- package/package.json +1 -1
|
@@ -14,19 +14,9 @@ export class MacCodacyCli extends CodacyCli {
|
|
|
14
14
|
this.setCliCommand(this._cliVersion ? `CODACY_CLI_V2_VERSION=${this._cliVersion} ${localPath}` : localPath);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
//
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
this.setCliCommand(this._cliVersion ? `CODACY_CLI_V2_VERSION=${this._cliVersion} codacy-cli` : 'codacy-cli');
|
|
21
|
-
await this.execAsync(`${this.getCliCommand()} --help`);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
catch {
|
|
25
|
-
// CLI not found, clear it, and attempt to install it
|
|
26
|
-
this.setCliCommand('');
|
|
27
|
-
await this.install();
|
|
28
|
-
return undefined;
|
|
29
|
-
}
|
|
17
|
+
// CLI not found, attempt to install it
|
|
18
|
+
await this.install();
|
|
19
|
+
return;
|
|
30
20
|
}
|
|
31
21
|
async preflightCodacyCli() {
|
|
32
22
|
// is there a command?
|