__main__.py 613 B

123456789101112131415161718192021
  1. """Implementation of a command line for development purposes. To start a
  2. command, switch to the environment and run library module as a script::
  3. $ ./manage pyenv.cmd bash --norc --noprofile
  4. (py3) python -m searx.enginelib --help
  5. The following commands can be used for maintenance and introspection
  6. (development) of the engine cache::
  7. (py3) python -m searx.enginelib cache state
  8. (py3) python -m searx.enginelib cache maintenance
  9. """
  10. import typer
  11. from .. import enginelib
  12. app = typer.Typer()
  13. app.add_typer(enginelib.app, name="cache", help="Commands related to the cache of the engines.")
  14. app()