Skip to content

Commit

Permalink
feat(cli): Add script entrypoint
Browse files Browse the repository at this point in the history
This builds on the new CLI [2], to make it easier to use.

I've also removed left-over dependencies that are no longer needed [1]
and added the missing Pyright configuration.

[1] #107
[2] #105
  • Loading branch information
jesse-c committed Sep 19, 2024
1 parent bc1a983 commit 5dc4ef0
Show file tree
Hide file tree
Showing 4 changed files with 457 additions and 419 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,15 @@ adaptor.get_by_id(document_id="id:YOUR_NAMESPACE:YOUR_SCHEMA_NAME::SOME_DOCUMENT

All of the above search functionality assumes that a valid set of vespa credentials is available in `~/.vespa`, or in a directory supplied to the `VespaSearchAdapter` constructor directly. See [the docs](docs/vespa-auth.md) for more information on how vespa expects credentials.

# CLI

There is a simple CLI provided.

```bash
poetry poetry install --extras "vespa"
poetry run cpr
```

# Test setup

Some tests rely on a local running instance of vespa.
Expand Down Expand Up @@ -247,4 +256,4 @@ make vespa_dev_down
- Merge.
- Tag a release manually in github with a version that matches the latest on main that you just merged.
- In CI/CD we will check that the latest release matches the versions defined in code.
- Check in `pypi`.
- Check in `pypi`.
Loading

0 comments on commit 5dc4ef0

Please sign in to comment.