#client.git.branch.tree() not in reference doc ?
1 messages · Page 1 of 1 (latest)
@idle wing How about this?
https://dagger-io.readthedocs.io/en/sdk-python-v0.9.7/client.html#dagger.GitRepository.commit
import dagger
from dagger import dag, function
@function
async def foo() -> list[str]:
# Example usage: "dagger call foo"
return await (
dag.git("https://github.com/cucumber/gherkin.git")
.commit("aca9eb84bbb836dabf1e8baa3394b4c7599005c6")
.tree()
.entries()
)
you should be able to use
gherkin = client.git("https://github.com/cucumber/gherkin.git")
.commit("aca9eb84bbb836dabf1e8baa3394b4c7599005c6")
.tree()
Oh cool, that makes total sense, thank you.