mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-07 19:36:33 +00:00
Exposed version from the CLI.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
de1caf1451
commit
1dda5dd95b
@ -26,6 +26,11 @@ export class ArduinoCli {
|
||||
});
|
||||
}
|
||||
|
||||
async getVersion(): Promise<string> {
|
||||
const execPath = await this.getExecPath();
|
||||
return cp.execFileSync(`${execPath}`, ['version']).toString().trim();
|
||||
}
|
||||
|
||||
async getDefaultConfig(): Promise<Config> {
|
||||
const command = await this.getExecPath();
|
||||
return new Promise<Config>((resolve, reject) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user