Run.run: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/add/run.bend as Run Lines 77-90 of ezx@1.11.0.0/src/add/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/add/run.bend&start_line=77&end_line=90 import Base import snap@1.4.0.0/main.bend as R import ezx@1.11.0.0/src/io/file.bend as F import ezx@1.11.0.0/src/lock/run.bend as Run import ezx@1.11.0.0/src/lock/world.bend as W import ezx@1.11.0.0/src/add/world.bend as A import ezx@1.11.0.0/src/ws/run.bend as WsRun import ezx@1.11.0.0/src/add/relock.bend as AR import ezx@1.11.0.0/src/ws/relock.bend as Rel # `ez add [ref] [entry.bend] [--rename NAME]` def run(+target: String, +ref: String, +entry: String, +rename: String) -> IO(Unit): do IO: lib : String <- Run.bend.lib() +pwd : String <- R.exec(["pwd"]) h : Result<&1, &1, U32 & String, String> <- IO.get_env("HOME") +home : String <- IO.pure(String, Run.env.text(h)) pinned : String <- WsRun.add.ref(home, target, ref) led : Maybe<&2, String> <- F.read(A.toml()) ig : Maybe<&2, String> <- F.read(A.ignore.file()) ls : W.Listing <- Run.read.listing() ws : Rel.Ws <- WsRun.relock.ws() loop(rounds(), lib, ws, AR.World{A.World{A.Args{target, pinned, entry, rename}, String.trim(R.text(pwd)), home, led, F.text_of(ig), [], []}, ls, []}) Uses (30): 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.get_env 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=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result 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=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/relock.bend&name=World https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/run.bend&name=loop https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/run.bend&name=rounds https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=Args https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=ignore.file https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=toml https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/io/file.bend&name=read https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/io/file.bend&name=text_of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=bend.lib https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=env.text https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=read.listing https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=Listing https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/relock.bend&name=Ws https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/run.bend&name=add.ref https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/run.bend&name=relock.ws 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