mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Add click-repl as optdepend
This commit is contained in:
parent
283d6f98df
commit
8130789d39
1 changed files with 9 additions and 0 deletions
|
|
@ -211,3 +211,12 @@ def repair(collection):
|
||||||
from .tasks import repair_collection
|
from .tasks import 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)
|
||||||
|
|
||||||
|
try:
|
||||||
|
import click_repl
|
||||||
|
click_repl.register_repl(app)
|
||||||
|
except ImportError:
|
||||||
|
@app.command()
|
||||||
|
def repl():
|
||||||
|
click.echo('You need click-repl installed.')
|
||||||
|
ctx.exit(1)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue