Hello, I am trying to see if it's possible to chain custom functions together.
For example:
@function
def my_container(self) -> dagger.Container:
return ( dag
.container()
.from_(address="alpine:latest")
.with_exec(["apk", "add", "yq", "curl"])
)
@function
async def my_test_func(self, container: dagger.Container) -> str:
k = await container.with_exec(["echo", "{\Hello\": \"world\"}", "|", "yq"]).stdout()
return k
dagger call my-container my-test-func --container
How would i approach this?