#Using the TS SDK, how would I get a host directory?

1 messages · Page 1 of 1 (latest)

grizzled agate
#

Hi

Using the generated class based TS code I can pass a source directory via a cli flag
e.g. async test(source: Directory)

But what if I would like to get a directory from the host without passing it via flag?

Something like client.host().directory("./frontend") shown in https://github.com/dagger/dagger/blob/main/examples/sdk/nodejs/db-service/build.js#L13

But I can't figure out this when using the generated class based approach. How do I access host()?
Thanks

GitHub

An engine to run your pipelines in containers. Contribute to dagger/dagger development by creating an account on GitHub.

hardy mango