https://pantsbuild.org/ logo
#development
Title
# development
b

bored-art-40741

04/11/2021, 7:55 PM
Idle thought: has there been any consideration for adding an API for
Digest
manipulation where you chain the various filesystem manipulations and then await a single operation sequence?
f

fast-nail-55400

04/11/2021, 8:02 PM
I’ve had need for a more powerful ability to rename files within a digest. AddPrefix/RemovePrefix is useful but not enough in some situations.
I think the need for a more powerful API has not arisen consistently before now. Your work is probably causing that need to arise consistently.
b

bored-art-40741

04/11/2021, 8:08 PM
Interesting, I’ll keep it in mind then
h

hundreds-father-404

04/11/2021, 8:10 PM
Yes, Stu has proposed the need for something much more flexible, which we all want but no one has figured out how to model. Please do share any thoughts you have
w

witty-crayon-22786

04/12/2021, 4:43 PM
a strawdesign would be for it to be a series of imperative commands like a bash script:
Copy code
mv $x $y
rm $a
…but described as a struct:
Copy code
RestructuredDigest([
  Mv("x", "y"),
  Rm("a"),
])
👍 1