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/config | |
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/config')
-rw-r--r-- | internal/config/source.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/config/source.go b/internal/config/source.go index 2b1b440..28451e3 100644 --- a/internal/config/source.go +++ b/internal/config/source.go @@ -13,6 +13,7 @@ const ( Unknown = iota Channel ChannelNixpkgs + DownloadOptions ) func (f Type) String() string { @@ -21,6 +22,8 @@ func (f Type) String() string { return "channel" case ChannelNixpkgs: return "channel-nixpkgs" + case DownloadOptions: + return "download-options" } return fmt.Sprintf("Fetcher(%d)", f) @@ -32,6 +35,8 @@ func parseType(name string) (Type, error) { return Channel, nil case "channel-nixpkgs": return ChannelNixpkgs, nil + case "download-options": + return DownloadOptions, nil default: return Unknown, fmt.Errorf("unsupported fetcher %s", name) } |