Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

GRAILS-9714 Add usage descriptions to several scripts

  • Loading branch information...
commit 22c9ebda9658279ee958ef22f559fcf6d2170b8e 1 parent 2074227
Alexander Zeillinger authored January 04, 2013 jeffbrown committed January 04, 2013
8  scripts/CreateController.groovy
@@ -43,3 +43,11 @@ target ('default': "Creates a new controller") {
43 43
     }
44 44
 
45 45
 }
  46
+
  47
+USAGE = """
  48
+    create-controller [NAME]
  49
+
  50
+where
  51
+    NAME       = The name of the controller. If not provided, this
  52
+                 command will ask you for the name.
  53
+"""
8  scripts/CreateDomainClass.groovy
@@ -35,3 +35,11 @@ target ('default': "Creates a new domain class") {
35 35
         createUnitTest(name: name, suffix: "")
36 36
     }
37 37
 }
  38
+
  39
+USAGE = """
  40
+    create-domain-class [NAME]
  41
+
  42
+where
  43
+    NAME       = The name of the domain class. If not provided, this
  44
+                 command will ask you for the name.
  45
+"""
8  scripts/CreateFilters.groovy
@@ -39,3 +39,11 @@ target ('default': "Creates a new filters class") {
39 39
         createUnitTest(name: name, suffix: type)
40 40
     }
41 41
 }
  42
+
  43
+USAGE = """
  44
+    create-filters [NAME]
  45
+
  46
+where
  47
+    NAME       = The name of the filters class. If not provided, this
  48
+                 command will ask you for the name.
  49
+"""
8  scripts/CreateIntegrationTest.groovy
@@ -35,3 +35,11 @@ target ('default': "Creates a new Grails integration test which loads the whole
35 35
         createIntegrationTest(name: name, suffix: "", testType:"Generic")
36 36
     }
37 37
 }
  38
+
  39
+USAGE = """
  40
+    create-integration-test [NAME]
  41
+
  42
+where
  43
+    NAME       = The name of the controller. If not provided, this
  44
+                 command will ask you for the name.
  45
+"""
7  scripts/CreatePlugin_.groovy
@@ -28,8 +28,9 @@ includeTargets << grailsScript("_GrailsCreateProject")
28 28
 setDefaultTarget("createPlugin")
29 29
 
30 30
 USAGE = """
31  
-    create-plugin <pluginName>
  31
+    create-plugin [NAME]
32 32
 
33 33
 where
34  
-    pluginName = the name of the new plugin
35  
-"""
  34
+    NAME       = The name of the plugin. If not provided, this
  35
+                 command will ask you for the name.
  36
+"""
17  scripts/CreateScaffoldController.groovy
@@ -26,14 +26,6 @@
26 26
 includeTargets << grailsScript("_GrailsInit")
27 27
 includeTargets << grailsScript("_GrailsCreateArtifacts")
28 28
 
29  
-USAGE = """
30  
-    create-scaffold-controller [DOMAIN ...]
31  
-
32  
-where
33  
-    DOMAIN   = The name, including package, of a domain class to create
34  
-               a scaffolding controller for. (default: prompts for a name)
35  
-"""
36  
-
37 29
 target (default: "Creates a new scaffolding controller for a domain class") {
38 30
     depends(checkVersion, parseArguments)
39 31
 
@@ -65,3 +57,12 @@ target (default: "Creates a new scaffolding controller for a domain class") {
65 57
     }
66 58
 
67 59
 }
  60
+
  61
+USAGE = """
  62
+    create-scaffold-controller [NAME]
  63
+
  64
+where
  65
+    NAME       = The name, including package, of the domain class to create
  66
+				 a scaffolded controller for. If not provided, this
  67
+                 command will ask you for the name.
  68
+"""
8  scripts/CreateScript.groovy
@@ -36,3 +36,11 @@ target ('default': "Creates a Grails Gant Script") {
36 36
                        path: "scripts", skipPackagePrompt: true)
37 37
     }
38 38
 }
  39
+
  40
+USAGE = """
  41
+    create-script [NAME]
  42
+
  43
+where
  44
+    NAME       = The name of the script. If not provided, this
  45
+                 command will ask you for the name.
  46
+"""
8  scripts/CreateService.groovy
@@ -39,3 +39,11 @@ target ('default': "Creates a new service class") {
39 39
         createUnitTest(name: name, suffix: type)
40 40
     }
41 41
 }
  42
+
  43
+USAGE = """
  44
+    create-service [NAME]
  45
+
  46
+where
  47
+    NAME       = The name of the service. If not provided, this
  48
+                 command will ask you for the name.
  49
+"""
8  scripts/CreateTagLib.groovy
@@ -37,3 +37,11 @@ target ('default': "Creates a new tag library") {
37 37
         createUnitTest(name: name, suffix: type, superClass: "TagLibUnitTestCase")
38 38
     }
39 39
 }
  40
+
  41
+USAGE = """
  42
+    create-tab-lib [NAME]
  43
+
  44
+where
  45
+    NAME       = The name of the tag library. If not provided, this
  46
+                 command will ask you for the name.
  47
+"""
8  scripts/CreateUnitTest.groovy
@@ -36,3 +36,11 @@ target ('default': "Creates a new Grails unit test. A unit test requires that yo
36 36
         createUnitTest(name: name, suffix: "", testType:"UnitTest")
37 37
     }
38 38
 }
  39
+
  40
+USAGE = """
  41
+    create-unit-test [NAME]
  42
+
  43
+where
  44
+    NAME       = The name of the controller. If not provided, this
  45
+                 command will ask you for the name.
  46
+"""
9  scripts/GenerateController.groovy
@@ -37,3 +37,12 @@ target ('default': "Generates the CRUD controller for a specified domain class")
37 37
         generateForOne()
38 38
     }
39 39
 }
  40
+
  41
+USAGE = """
  42
+    generate-controller [NAME]
  43
+
  44
+where
  45
+    NAME       = Either a domain class name (case-sensitive) or a
  46
+				 wildcard (*). If you specify the wildcard then
  47
+				 controllers will be generated for all domain classes.
  48
+"""
9  scripts/GenerateViews.groovy
@@ -37,3 +37,12 @@ target ('default': "Generates the CRUD views for a specified domain class") {
37 37
         generateForOne()
38 38
     }
39 39
 }
  40
+
  41
+USAGE = """
  42
+    generate-views [NAME]
  43
+
  44
+where
  45
+    NAME       = Either a domain class name (case-sensitive) or a
  46
+				 wildcard (*). If you specify the wildcard then
  47
+				 views will be generated for all domain classes.
  48
+"""
7  scripts/SetVersion.groovy
@@ -83,3 +83,10 @@ target ('default': "Sets the current application version") {
83 83
         event("StatusFinal", [ "Application version updated to $newVersion"])
84 84
     }
85 85
 }
  86
+
  87
+USAGE = """
  88
+    set-version [NUMBER]
  89
+
  90
+where
  91
+    NUMBER     = The number to set the current application version to.
  92
+"""

0 notes on commit 22c9ebd

Please sign in to comment.
Something went wrong with that request. Please try again.