I have this code (v0.13.3).
@object_type
class Pipeline:
@function
async def run(self, source: Annotated[dagger.Directory, DefaultPath(".")]
) -> list[str]:
return await source.entries()
Running it by passing --source=. as argument returns the entries in the current project as expected.
dagger call -m ../pipeline run --source=.
Running it without any arguments returns the entries of the dagger module - but I would have expected to be same results. Any reasons for this design choice? I'm not sure the reason to access the content of the module.
dagger call -m ../pipeline run
I've been reading through the docs at https://docs.dagger.io/manuals/developer/functions/#directories-and-files.