code: func modelsCmdPreRun(cmd *cobra.Command, args []string) error {
  	var err error
  	cnf, err = config.Initialize(cmd.Flags().Lookup("env"))
  	if err != nil {
  		return err
  	}
  
  	cnf.ModeViper.BindPFlags(modelsCmd.Flags())
  
  	err = cnf.CheckEnv()
  	if err != nil {
  		return err
  	}
  
  	return modelsCmdSetup(cmd, args)
  }
docs: // modelsCmdPreRun sets up the modelsCmdState and modelsCmdConfig objects