proof of concept for cobra+viper implementation
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Nick Dumas 2eb04f5c0e updating readme 1 year ago
cmd minimal reproducing sample 1 year ago
LICENSE minimal reproducing sample 1 year ago
README.md updating readme 1 year ago
go.mod minimal reproducing sample 1 year ago
go.sum minimal reproducing sample 1 year ago
main.go minimal reproducing sample 1 year ago

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.