mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Remove stub repl
This commit is contained in:
parent
8130789d39
commit
544a0790b5
1 changed files with 8 additions and 4 deletions
|
|
@ -212,11 +212,15 @@ def repair(collection):
|
||||||
general, all_pairs, all_storages = ctx.obj['config']
|
general, all_pairs, all_storages = ctx.obj['config']
|
||||||
repair_collection(general, all_pairs, all_storages, collection)
|
repair_collection(general, all_pairs, all_storages, collection)
|
||||||
|
|
||||||
|
# Not sure if useful. I originally wanted it because:
|
||||||
|
# * my password manager has a timeout for caching the master password
|
||||||
|
# * when calling vdirsyncer in a cronjob, the master password prompt would
|
||||||
|
# randomly pop up
|
||||||
|
# So I planned on piping a FIFO to vdirsyncer, and writing to that FIFO from a
|
||||||
|
# cronjob.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import click_repl
|
import click_repl
|
||||||
click_repl.register_repl(app)
|
click_repl.register_repl(app)
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@app.command()
|
pass
|
||||||
def repl():
|
|
||||||
click.echo('You need click-repl installed.')
|
|
||||||
ctx.exit(1)
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue