Skip to content

Commit

Permalink
Merge pull request grails#180 from bobbywarner/GRAILS-8556
Browse files Browse the repository at this point in the history
GRAILS-8556: help command modification for interactive
  • Loading branch information
graemerocher committed Apr 18, 2012
2 parents 7a4c97c + 6520929 commit fa32c78
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/Help_.groovy
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/ */


import grails.util.GrailsNameUtils import grails.util.GrailsNameUtils
import grails.util.Environment


includeTargets << grailsScript("_GrailsInit") includeTargets << grailsScript("_GrailsInit")


Expand Down Expand Up @@ -85,7 +86,11 @@ Available Targets (type grails help 'target-name' for more info):"""


scripts.unique { it.name }. sort{ it.name }.each { file -> scripts.unique { it.name }. sort{ it.name }.each { file ->
def scriptName = GrailsNameUtils.getScriptName(file.name) def scriptName = GrailsNameUtils.getScriptName(file.name)
println "grails ${scriptName}" if (System.getProperty(Environment.INTERACTIVE_MODE_ENABLED)) {
println scriptName
} else {
println "grails ${scriptName}"
}
} }
} }
} }
Expand Down

0 comments on commit fa32c78

Please sign in to comment.