Skip to content
Browse files

Merge pull request #180 from bobbywarner/GRAILS-8556

GRAILS-8556: help command modification for interactive
  • Loading branch information...
2 parents 7a4c97c + 6520929 commit fa32c786011e6287a67a013ae4a937f9e73bf1dd @graemerocher graemerocher committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 scripts/Help_.groovy
View
7 scripts/Help_.groovy
@@ -23,6 +23,7 @@
*/
import grails.util.GrailsNameUtils
+import grails.util.Environment
includeTargets << grailsScript("_GrailsInit")
@@ -85,7 +86,11 @@ Available Targets (type grails help 'target-name' for more info):"""
scripts.unique { it.name }. sort{ it.name }.each { file ->
def scriptName = GrailsNameUtils.getScriptName(file.name)
- println "grails ${scriptName}"
+ if (System.getProperty(Environment.INTERACTIVE_MODE_ENABLED)) {
+ println scriptName
+ } else {
+ println "grails ${scriptName}"
+ }
}
}
}

0 comments on commit fa32c78

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