def regular

ezx@1.11.0.0 · src/sha/nar.bend:63

import ezx@1.11.0.0/src/sha/nar.bend as Nar
import Base
import ezx@1.11.0.0/src/share/sha.bend as Sha

63# a regular file's node, marked executable when it is
64def regular(ex: Bool, +contents: String) -> String:
65  str("(") ++ str("type") ++ str("regular") ++ exec.fields(ex)
66    ++ str("contents") ++ str(Sha.utf8(contents)) ++ str(")")

Uses (6)

Used by (1)