Main class for the Grails command line. Handles interactive mode and running Grails commands within the context of a profile
Modifiers | Name | Description |
---|---|---|
static class |
GrailsCli.ExecutionContextImpl |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DEFAULT_PROFILE_NAME |
Type | Name and description |
---|---|
private static java.lang.String |
ARG_SPLIT_PATTERN |
private SortedAggregateCompleter |
aggregateCompleter |
private java.lang.Boolean |
ansiEnabled |
private CodeGenConfig |
applicationConfig |
private CommandLineParser |
cliParser |
private java.lang.Character |
defaultInputMask |
private boolean |
integrateGradle |
private boolean |
keepRunning |
private Profile |
profile |
private java.util.List |
profileRepositories |
private ProfileRepository |
profileRepository |
private ProjectContext |
projectContext |
Constructor and description |
---|
GrailsCli
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected java.lang.Boolean |
bang(ExecutionContext context) |
|
ExecutionContext |
createExecutionContext(CommandLine commandLine) |
|
protected MavenProfileRepository |
createMavenProfileRepository() |
|
int |
execute(java.lang.String[] args) Execute the given command
|
|
protected boolean |
executeCommandWithArgumentValidation(Command cmd, CommandLine mainCommandLine) |
|
protected boolean |
executeProcess(ExecutionContext context, java.lang.String[] args) |
|
static void |
exit(int code) |
<T> |
static T |
getSetting(java.lang.String key, java.lang.Class targetType, T defaultValue) Obtains a value from USER_HOME/.grails/settings.yml
|
|
java.lang.Boolean |
handleCommand(CommandLine commandLine) |
|
java.lang.Boolean |
handleCommand(ExecutionContext context) |
|
protected void |
initializeApplication(CommandLine mainCommandLine) |
|
static boolean |
isInteractiveModeActive() |
|
static void |
main(java.lang.String[] args) Main method for running via the command line
|
|
protected void |
outputMissingArgumentsMessage(Command cmd) |
|
protected void |
populateContextLoader() |
|
protected GrailsConsole |
setupCompleters() |
|
protected void |
startInteractiveMode(GrailsConsole console) |
|
static void |
tiggerAppLoad() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Execute the given command
args
- The argumentsObtains a value from USER_HOME/.grails/settings.yml
key
- the property name to resolvetargetType
- the expected type of the property valuedefaultValue
- The default valueMain method for running via the command line
args
- The arguments