Skip to content

refactor(inventory): replace fmt.Printf printing with structured zap logging#267

Merged
r2dedios merged 1 commit into
release-0.6from
feat/improve-inventory-printing
Jun 23, 2026
Merged

refactor(inventory): replace fmt.Printf printing with structured zap logging#267
r2dedios merged 1 commit into
release-0.6from
feat/improve-inventory-printing

Conversation

@r2dedios

Copy link
Copy Markdown
Collaborator

Summary

  • Remove all Print* and String() methods from the inventory package — fmt.Printf side effects don't belong in domain models
  • Remove PrintStock() from the Stocker interface and all implementations (AWS, GCP, Azure) — it was never called
  • Add TotalClusters() and TotalInstances() helper methods to Inventory
  • Replace inv.PrintInventory() in the scanner with structured zap.Info logging with account/cluster/instance counts

Test plan

  • make go-unit-tests — all pass, 100% coverage on inventory
  • make lint — 0 issues
  • make local-build — compiles clean

Closes #242

@r2dedios r2dedios self-assigned this Jun 23, 2026
@r2dedios r2dedios added the enhancement New feature or request label Jun 23, 2026
@r2dedios r2dedios added this to the v0.6 milestone Jun 23, 2026
@r2dedios r2dedios linked an issue Jun 23, 2026 that may be closed by this pull request
@r2dedios r2dedios merged commit 1839ff8 into release-0.6 Jun 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve inventory printing

1 participant