diff options
| author | anthropic-code-agent[bot] <[email protected]> | 2026-04-28 18:08:20 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-28 18:08:20 +0000 |
| commit | fbc2f20cdfc138b0146fcc61bcb7ed2c1776a076 (patch) | |
| tree | fada69f06625575fbda4a0533dd95316d7d0d2b6 /lookup.go | |
| parent | 6fbcfeba5b73e4ac50ab0257040103cadf524ea7 (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.go | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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), + ) } |
