pimutils / vdirsyncer

📇 Synchronize calendars and contacts.
https://vdirsyncer.pimutils.org/
Other
1.53k stars 158 forks source link

Suggestion: add -y flag #969

Open Gaming4LifeDE opened 2 years ago

Gaming4LifeDE commented 2 years ago

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.

WhyNotHugo commented 2 years ago

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.

dilyanpalauzov commented 2 years ago

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

c-schwamborn commented 1 year ago

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

jrpear commented 9 months ago

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