Exec.anchored: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/git/exec.bend as Exec Lines 29-38 of ezx@1.11.0.0/src/git/exec.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/git/exec.bend&start_line=29&end_line=38 import Base import snap@1.4.0.0/main.bend as R import ezx@1.11.0.0/src/pkg/path.bend as P # a source as git is to read it. A ledger records a local path as it was # given, relative to the project, which is the directory ez runs in, so the # ledger reads the same on every clone. git reads such a path from somewhere # else: a fetch from inside its work directory, and `ls-remote` from the top # of any repository around it. Every git command here that is handed a source # is handed this instead. def anchored(+url: String) -> IO(String): do IO: +here : String <- R.exec(["pwd"]) return P.anchor(String.trim(R.text(here)), url) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.trim https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/path.bend&name=anchor https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=exec https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=text