vdirsyncer icon indicating copy to clipboard operation
vdirsyncer copied to clipboard

Suggestion: add -y flag

Open skutter-de opened this issue 3 years ago • 4 comments

I'm trying to automate the use of vdirsyncer for backing up from sogo (mailcow). For automation it would be cool if it didn't ask if it should create a folder if i just pass a flag like -y and instead just do it automatically.

Sidenote: How can I use it as a library in my own python stuff? The code doesn't make this clear for me sadly.

skutter-de avatar Feb 21 '22 11:02 skutter-de

You can create empty directories manually as a workaround for now. A flag to indicate "yes, create all" would be nice though.

How can I use it as a library in my own python stuff? The code doesn't make this clear for me sadly.

Not really, but it's planned, I'll have more on this soon.

WhyNotHugo avatar Feb 22 '22 13:02 WhyNotHugo

You can evaluate https://github.com/pimutils/vdirsyncer/pull/869.

dilyanpalauzov avatar Apr 11 '22 12:04 dilyanpalauzov

Second that request. Adding --yes --batch or something similar to silence any yes/no question would greatly extend the use case of this script.

c-schwamborn avatar Dec 30 '22 13:12 c-schwamborn

For now you can use yes | vdirsyncer discover and the like.

jrpear avatar Nov 12 '23 22:11 jrpear