I often need to update existing dvc file (say train.dvc) for run stage with some minor changes like slightly modifying the cmd section, or adding new outs or deps.
The way I do it now is to reverse-engineer the original dvc run -d ... -o ... -f train.dvc <cmd> command that was used to create this train.dvc file's content.
This is cumbersome and seems like an unnecessary work.
I've tried to edit train.dvc manually, but sometimes it resulted in a corrupted file.
Also it seems that there is some special format that is preserved while splitting cmd into multiple line.
Is there any easy and not so hacky way to do this?
I often need to update existing dvc file (say
train.dvc) forrunstage with some minor changes like slightly modifying thecmdsection, or adding newoutsordeps.The way I do it now is to reverse-engineer the original
dvc run -d ... -o ... -f train.dvc <cmd>command that was used to create thistrain.dvcfile's content.This is cumbersome and seems like an unnecessary work.
I've tried to edit
train.dvcmanually, but sometimes it resulted in a corrupted file.Also it seems that there is some special format that is preserved while splitting
cmdinto multiple line.Is there any easy and not so hacky way to do this?