def tool
import ezx@1.11.0.0/src/ledger/render.bend as Renderimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
53# one `[tools.<name>]` section. No hash: a tool is not a package.
54def tool(pin: M.Tool) -> String:
55 M.Tool{n, e, b, s} = pin
56 "\n[tools." ++ n ++ "]\n" ++ source(s) ++ line("entry", e) ++ line("bin", b)