From flags to subcommands: Rewriting a Go CLI with Cobra

I built an open-source AWS cost optimization tool in Go, but as it grew, the standard flag package became a bottleneck. Here is my experience rewriting the CLI architecture with Cobra, the breaking changes it caused, and why it was worth it.