def differs
import near-v-framework@0.4.0.0/domain/architecture/system/effects.bend as Effectsimport Base
import near-v-framework@0.4.0.0/domain/architecture/system/effs/io.bend as X
361# Whether a generated file differs from the one in the repository (compared by cmp, not in memory).
362def differs(+path: String, +text: String) -> IO(Bool):
363 do IO<Bool>:
364 X.write("/tmp/v-generated", text)
365 same : Bool <- X.succeeds("cmp", ["-s", "/tmp/v-generated", path])
366 return Bool.not(same)