INNER CODE UNIT · Go
main
cweill/gotests · gotests/main.go:87
func main() {
flag.Parse()
args := flag.Args()
if *version {
printVersion()
return
}
// Validate AI parameters and warn user
if *useAI {
// Warn about sending code to AI provider
fmt.Fprintf(os.Stderr, "⚠️ WARNING: Function source code will be sent to AI provider at %s\n", *aiEndpoint)
fmt.Fprintf(os.Stderr, " Ensure your code does not contain secrets or sensitive information.\n\n")
// Validate parameters
if *aiModel == "" {
fmt.Fprintf(os.Stderr, "Error: -ai-model cannot be empty when using -ai flag\n")