summaryrefslogtreecommitdiff
path: root/lookup.go
diff options
context:
space:
mode:
authoranthropic-code-agent[bot] <[email protected]>2026-04-28 18:08:20 +0000
committerGitHub <[email protected]>2026-04-28 18:08:20 +0000
commitfbc2f20cdfc138b0146fcc61bcb7ed2c1776a076 (patch)
treefada69f06625575fbda4a0533dd95316d7d0d2b6 /lookup.go
parent6fbcfeba5b73e4ac50ab0257040103cadf524ea7 (diff)
Complete functional options pattern refactoring for special pluginclaude/refactor-plugins-functional-options
Agent-Logs-Url: https://github.com/Loyalsoldier/geoip/sessions/0483b641-15da-4630-a3ad-53f8d1c65fe9 Co-authored-by: Loyalsoldier <[email protected]>
Diffstat (limited to 'lookup.go')
-rw-r--r--lookup.go12
1 files changed, 5 insertions, 7 deletions
diff --git a/lookup.go b/lookup.go
index cc1fed65..c672fbff 100644
--- a/lookup.go
+++ b/lookup.go
@@ -254,11 +254,9 @@ func getInputForLookup(format, name, uri, dir string) lib.InputConverter {
}
func getOutputForLookup(search string, searchList ...string) lib.OutputConverter {
- return &special.Lookup{
- Type: special.TypeLookup,
- Action: lib.ActionOutput,
- Description: special.DescLookup,
- Search: search,
- SearchList: searchList,
- }
+ return special.NewLookup(
+ lib.ActionOutput,
+ special.WithLookupSearch(search),
+ special.WithLookupSearchList(searchList),
+ )
}