From 744774878f5bd178582f4a4f60df7986e20a3ded Mon Sep 17 00:00:00 2001 From: bth Date: Tue, 20 Jan 2026 14:49:54 -0800 Subject: [PATCH] tag : one call --- tag/tag.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tag/tag.go b/tag/tag.go index 1af3121..a1d1910 100644 --- a/tag/tag.go +++ b/tag/tag.go @@ -51,7 +51,8 @@ func parseArgs(args []string) options { return opts } -func tag(opts options) { +func Tag(args []string) { + opts := parseArgs(args) queries := parseQuery(opts.Query.Val) entries := entriesGlobOrStdin() @@ -71,8 +72,3 @@ func tag(opts options) { printFiles(os.Stdout, entries, tagmap, files, adjacencies, queries, opts.Verbose.Val) } - -func Tag(args []string) { - opts := parseArgs(args) - tag(opts) -}