esp-idf
No long description provided.
Installation
dagger install github.com/alanmosely/daggerverse/esp-idf@v0.0.1
Entrypoint
Return Type
EspIdf !
Example
dagger -m github.com/alanmosely/daggerverse/esp-idf@8e076257b8dbe2298ae46b2c6cf5845c75715356 call \
func (m *myModule) example() *EspIdf {
return dag.
EspIdf()
}
@function
def example() -> dag.EspIdf:
return (
dag.esp_idf()
)
@func()
example(): EspIdf {
return dag
.espIdf()
}
Types
EspIdf 🔗
build() 🔗
Execute idf.py from the official Espressif IDF Docker image
Example usage: dagger call build –project_dir . –image_version “v5.2”
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
projectDir | Directory ! | - | The directory containing the ESP-IDF project |
imageVersion | String ! | "v5.1" | The version of the Espressif IDF Docker image to use |
idfArgs | [String ! ] ! | ["build"] | The arguments to pass to idf.py |
Example
dagger -m github.com/alanmosely/daggerverse/esp-idf@8e076257b8dbe2298ae46b2c6cf5845c75715356 call \
build --project-dir DIR_PATH --image-version string --idf-args string1 --idf-args string2
func (m *myModule) example(ctx context.Context, projectDir *Directory, imageVersion string, idfArgs []string) string {
return dag.
EspIdf().
Build(ctx, projectDir, imageVersion, idfArgs)
}
@function
async def example(project_dir: dagger.Directory, image_version: str, idf_args: List[str]) -> str:
return await (
dag.esp_idf()
.build(project_dir, image_version, idf_args)
)
@func()
async example(projectDir: Directory, imageVersion: string, idfArgs: string[]): Promise<string> {
return dag
.espIdf()
.build(projectDir, imageVersion, idfArgs)
}