code: func VisitAll(root *cobra.Command, fn func(*cobra.Command)) {
  	for _, cmd := range root.Commands() {
  		VisitAll(cmd, fn)
  	}
  	fn(root)
  }
docs: // VisitAll will traverse all commands from the root.
  // This is different from the VisitAll of cobra.Command where only parents
  // are checked.