code: func RunCmdChecks(cmd *cobra.Command, cmdChecks []CmdCheck, skipCmd []string) []error {
  	cmdPath := cmd.CommandPath()
  
  	for _, skipCmdPath := range skipCmd {
  		if cmdPath == skipCmdPath {
  			fmt.Fprintf(os.Stdout, "---+ skipping command %s\n", cmdPath)
  			return []error{}
  		}
  	}
  
  	errors := []error{}
  
  	if cmd.HasSubCommands() {
  		for _, subCmd := range cmd.Commands() {
  			errors = append(errors, RunCmdChecks(subCmd, cmdChecks, skipCmd)...)
  		}
  	}
  
  	fmt.Fprintf(os.Stdout, "---+ RUNNING COMMAND CHECKS on %q\n", cmdPath)
  
  	for _, check := range cmdChecks {
  		if err := check(cmd); err != nil && len(err) > 0 {
  			errors = append(errors, err...)
  		}
  	}
  
  	return errors
  }
docs: // RunCmdChecks runs all the CmdCheck functions passed, skipping skippable commands and looks for error