Details
-
New Feature
-
Status: Resolved
-
Minor
-
Resolution: Complete
-
2.0.0.M1
-
None
-
None
Description
We need to define some parameters that will be available in more than one Spring Roo command. These parameters will be known as "global parameters".
Spring Roo shell will offer that parameters as optional parameters for all commands. To use them, developer should define a new parameter on @CliCommand annotated method. This parameter will be a ShellContext object.
This object will be an interface that defines the following API:
// Check if --force global parameter has been setted with 'true' value. boolean isForce(); // Returns a map with current parameters written on shell Map<String, String> getParameters();