Add configurable mount query
This commit is contained in:
@@ -26,13 +26,13 @@ Erstellen Sie eine `docspell-import.json` Datei in Ihrem Home-Verzeichnis: [Beis
|
||||
|
||||
The `mount` subcommand exposes a Docspell collection as a read-only filesystem.
|
||||
It uses the same `~/docspell-import.json` configuration and password command as the import command.
|
||||
Set `mountPath` in the config to define the default mount point.
|
||||
Set `mountPath` in the config to define the default mount point and `mountQuery` to define the default Docspell query.
|
||||
|
||||
```bash
|
||||
mkdir -p ~/mnt/docspell
|
||||
docspell-import mount --query '*' ~/mnt/docspell # starts in the background
|
||||
docspell-import mount ~/mnt/docspell # starts in the background
|
||||
# or, with mountPath configured:
|
||||
docspell-import mount --query '*'
|
||||
docspell-import mount
|
||||
# unmount when done
|
||||
fusermount -u ~/mnt/docspell
|
||||
```
|
||||
@@ -45,7 +45,7 @@ Mounted files are grouped as:
|
||||
|
||||
Options:
|
||||
|
||||
- `--query`: Docspell item query to expose, default `*`.
|
||||
- `--query`: Docspell item query to expose, defaults to `mountQuery` from config.
|
||||
- `--limit`: number of items fetched per API request, default `1000`.
|
||||
- `--auth-header`: token header, default `X-Docspell-Auth`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user