Ejemplo n.º 1
0
 def execute(self, verbose=False):
     path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../data/functional_test_config.yaml")
     args = {
         "<config-path>": path,
         "--verbose": verbose,
     }
     run_search_prune(args)
Ejemplo n.º 2
0
#!/usr/bin/env python
import docopt
from pyshelf.bulk_update.utils import run_search_prune

doc = """Usage: ./prune-search-index [options] <config-path>

    Options:
        -v --verbose                If set, the log level will be set to DEBUG.

    Arguments:
        <config-path>               Path to the yaml configuration file.
"""

args = docopt.docopt(doc)
run_search_prune(args)