sim file parser and generator
authorJoey Hess <joeyh@joeyh.name>
Wed, 11 Sep 2024 19:59:13 +0000 (15:59 -0400)
committerJoey Hess <joeyh@joeyh.name>
Wed, 11 Sep 2024 19:59:13 +0000 (15:59 -0400)
commitf381b457f2534a1c1e21441604cd31fe473c1410
tree4bf6ff72d015930d288cac8667ad621088f1f5df
parent84bbbeae9d9a05a13a60c15314f0cfffb47a5d2a
sim file parser and generator

The generator doesn't emit the best possible connect commands,
but it does output something valid. Eg, an input like:

connect A <-> B <-> C <-> D

becomes:

connect A <-> B <-> C
connect C <-> D

Also:

connect A -> B <- C

becomes:

connect A -> B
connect C -> B

Which could be improved.

Also disconnect commands are not prettified at all, but probably there's
no reason to.
Annex/Sim.hs
Annex/Sim/File.hs
Command/Sim.hs
doc/git-annex-sim.mdwn