1 import type Settings from "../settings.mjs";
2 import { getSDKAndToolchainPath } from "../utils/picoSDKUtil.mjs";
3 import { CommandWithResult } from "./command.mjs";
5 export default class GetToolchainPathCommand extends CommandWithResult<string> {
6 private _settings: Settings;
8 constructor(settings: Settings) {
9 super("getToolchainPath");
11 this._settings = settings;
14 async execute(): Promise<string> {
15 const [, toolchainPath] =
16 (await getSDKAndToolchainPath(this._settings)) ?? [];
18 return toolchainPath ?? "";