]> Git Repo - pico-vscode.git/blob - src/commands/getSDKPath.mts
Remove semver dependency
[pico-vscode.git] / src / commands / getSDKPath.mts
1 import type Settings from "../settings.mjs";
2 import { getSDKAndToolchainPath } from "../utils/picoSDKUtil.mjs";
3 import { CommandWithResult } from "./command.mjs";
4
5 export default class GetSDKPathCommand extends CommandWithResult<string> {
6   private _settings: Settings;
7
8   constructor(settings: Settings) {
9     super("getSDKPath");
10
11     this._settings = settings;
12   }
13
14   async execute(): Promise<string> {
15     const [sdkPath] = (await getSDKAndToolchainPath(this._settings)) ?? [];
16
17     return sdkPath ?? "";
18   }
19 }
This page took 0.027764 seconds and 4 git commands to generate.