(cmd *cobra.Command, args []string)
| 43 | } |
| 44 | |
| 45 | func runCacheStats(cmd *cobra.Command, args []string) error { |
| 46 | database, err := db.New() |
| 47 | if err != nil { |
| 48 | return err |
| 49 | } |
| 50 | defer database.Close() |
| 51 | |
| 52 | count, size, err := database.GetCacheStats() |
| 53 | if err != nil { |
| 54 | return err |
| 55 | } |
| 56 | sizeMB := float64(size) / 1024 / 1024 |
| 57 | fmt.Printf("Cache entries: %d\n", count) |
| 58 | fmt.Printf("Cache size: %.2f MB\n", sizeMB) |
| 59 | return nil |
| 60 | } |
nothing calls this directly
no test coverage detected