mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-03-09 05:20:21 +00:00
Merge branch 'idf' of github.com:HendrikRauh/dmx-interface into idf
This commit is contained in:
commit
82a7efad5e
1 changed files with 17 additions and 1 deletions
16
tasks.py
16
tasks.py
|
|
@ -1,4 +1,6 @@
|
||||||
from invoke import task
|
from invoke import task
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def cleanbuild(c):
|
def cleanbuild(c):
|
||||||
|
|
@ -38,6 +40,7 @@ def clean(c):
|
||||||
"""Clean build artifacts"""
|
"""Clean build artifacts"""
|
||||||
c.run("idf.py fullclean")
|
c.run("idf.py fullclean")
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
def config(c):
|
def config(c):
|
||||||
"""Open menuconfig to edit project settings"""
|
"""Open menuconfig to edit project settings"""
|
||||||
|
|
@ -53,3 +56,16 @@ def saveconfig(c):
|
||||||
def update(c):
|
def update(c):
|
||||||
"""Update project dependencies"""
|
"""Update project dependencies"""
|
||||||
c.run("idf.py update-dependencies")
|
c.run("idf.py update-dependencies")
|
||||||
|
|
||||||
|
@task
|
||||||
|
def reset(c):
|
||||||
|
"""Reset project to clean state: remove build, config, and managed components"""
|
||||||
|
if os.path.exists("sdkconfig"):
|
||||||
|
os.remove("sdkconfig")
|
||||||
|
if os.path.exists("sdkconfig.old"):
|
||||||
|
os.remove("sdkconfig.old")
|
||||||
|
if os.path.exists("build"):
|
||||||
|
shutil.rmtree("build")
|
||||||
|
if os.path.exists("managed_components"):
|
||||||
|
shutil.rmtree("managed_components")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue