All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ework.profiles.rest-api.2023.0.1.source-code.generate-all.groovy Maven / Gradle / Ivy

There is a newer version: 2023.1.0-M1
Show newest version
import org.grails.cli.interactive.completers.DomainClassCompleter

description( "Generates a controller that performs REST operations" ) {
  usage "grace generate-all [DOMAIN CLASS]"
  argument name:'Domain Class', description:"The name of the Domain Class", required:true
  completer DomainClassCompleter
  synonyms 'generate-resource-controller'
  flag name:'force', description:"Whether to overwrite existing files"
}

if(args) {
    generateController(*args)
    generateViews(*args)
    generateUnitTest(*args)
    generateFunctionalTest(*args)    
}
else {
    error "No domain class specified"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy