proof of concept for cobra+viper implementation
Nick Dumas 2eb04f5c0e updating readme
cmd minimal reproducing sample
LICENSE minimal reproducing sample
README.md updating readme
go.mod minimal reproducing sample
go.sum minimal reproducing sample
main.go minimal reproducing sample

README.md

/viper  5 main   130  go run main.go validate --format markdown
viper is providing "" for format flag
/viper  5 main   

I'm trying to bind viper to a PersistentFlag set on the RootCmd, and access it in the RunE method of a subcommand.