Add click-repl as optdepend

This commit is contained in:
Markus Unterwaditzer 2015-07-08 17:46:50 +02:00
parent 283d6f98df
commit 8130789d39

View file

@ -211,3 +211,12 @@ def repair(collection):
from .tasks import repair_collection
general, all_pairs, all_storages = ctx.obj['config']
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)