TL;DR: Try the Coral library as a drop-in replacement for Cobra.
I wanted to make a CLI wrapper for an SDK I’ve been working on. I’ve used Cobra in the past, and it’s been very handy, but I remember having seen a “soft-fork” of it on HackerNews a while ago. It took a minute to find it, since I couldn’t remember if it was a replacement of Cobra or Viper, and the README confuses the issue a bit.
It’s a replacement of Cobra. But it’s because it doesn’t import Viper’s dependencies… ok.
At any rate, it’s working fine. The only hiccup I have is that the Cobra CLI tool still outputs Cobra, understandably. So I need to manually change that if I use cobra-cli. A minor inconvenience.