bede / hostile

Precise host read removal
MIT License
74 stars 5 forks source link

Allow non-default databases in cloud bucket to be downloaded on first run #28

Closed bede closed 8 months ago

bede commented 10 months ago

Currently a custom database can be specified using --index. However, this needs to be already available on a local filesystem. If no index is specified and the default (human-t2t-hla) is not cached locally, it is downloaded. It would be useful if applications depending on Hostile could override the default database such that a custom database could be automatically downloaded on first run of not already present.

Another way to do this would be to implement a database / fetch subcommand

bede commented 10 months ago

Use environment variable to override default DB?

bede commented 9 months ago

Leaning towards --index accepting either an index path OR a name of a standard index in the cloud bucket, if not already cached locally. An alternative is to have separate args (e.g. --index and --custom-index for standard indexes referenced by name, or custom indexes referenced by path, respectively)

bede commented 8 months ago

Complete, to be released in 1.0.0 shortly