#client.git.branch.tree() not in reference doc ?

1 messages · Page 1 of 1 (latest)

idle wing
tacit ore
#
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()
idle wing
#

Oh cool, that makes total sense, thank you.