diff options
author | Alan Pearce | 2024-05-14 17:24:31 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-14 17:24:31 +0200 |
commit | df3b6bfd571c38aa7099838aa43bb3aff0eff2bf (patch) | |
tree | 5695d3a1d537b3456c13b60b0bb10a444ad39089 /internal/importer/main.go | |
parent | 5f9c7ef00b1ed56fb1abbade4d5dbc3041acd4fc (diff) | |
download | searchix-df3b6bfd571c38aa7099838aa43bb3aff0eff2bf.tar.lz searchix-df3b6bfd571c38aa7099838aa43bb3aff0eff2bf.tar.zst searchix-df3b6bfd571c38aa7099838aa43bb3aff0eff2bf.zip |
feat: add DownloadOptions importer (fetches pre-built options.json)
Diffstat (limited to 'internal/importer/main.go')
-rw-r--r-- | internal/importer/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/importer/main.go b/internal/importer/main.go index 2d87e33..0b7a99d 100644 --- a/internal/importer/main.go +++ b/internal/importer/main.go @@ -34,6 +34,8 @@ func Start(cfg *config.Config, indexer *index.WriteIndex, replace bool) error { imp = NewNixpkgsChannelImporter(source, importerDataPath, logger) case config.Channel: imp = NewChannelImporter(source, importerDataPath, logger) + case config.DownloadOptions: + imp = NewDownloadOptionsImporter(source, importerDataPath, logger) default: log.Printf("unsupported importer type %s", source.Type.String()) |