forked from espressif/vscode-esp-idf-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexport.ps1
33 lines (27 loc) · 810 Bytes
/
export.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Define the Invoke-idfpy function
function global:Invoke-idfpy {
& python.exe `
"$($env:IDF_PATH)\tools\idf.py" @args
}
function global:esptool.py {
& python.exe `
"$($env:IDF_PATH)\components\esptool_py\esptool\esptool.py" @args
}
function global:espefuse.py {
& python.exe `
"$($env:IDF_PATH)\components\esptool_py\esptool\espefuse.py" @args
}
function global:espsecure.py {
& python.exe `
"$($env:IDF_PATH)\components\esptool_py\esptool\espsecure.py" @args
}
function global:otatool.py {
& python.exe `
"$($env:IDF_PATH)\components\app_update\otatool.py" @args
}
function global:parttool.py {
& python.exe `
"$($env:IDF_PATH)\components\partition_table\parttool.py" @args
}
# Create an alias for the function
New-Alias -Name idf.py -Value Invoke-idfpy -Force -Scope Global