mise run and cache hit log

This commit is contained in:
bel
2026-03-08 22:23:30 -06:00
parent ca3c4d6607
commit ffdb643bef
6 changed files with 114 additions and 11 deletions

View File

@@ -2,8 +2,24 @@ package cmd
import (
"context"
"encoding/json"
"fmt"
"os"
)
func Run(ctx context.Context) error {
m, err := NewMapsOf(ctx, os.Args[1])
if err != nil {
return err
}
results, err := m.Search(ctx, os.Args[2])
if err != nil {
return err
}
b, _ := json.Marshal(results)
fmt.Printf("%s\n", b)
return ctx.Err()
}