Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-3697

Include global parameters in all Spring Roo commands

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M1
    • Fix Version/s: 2.0.0.M2
    • Component/s: None
    • Labels:
      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();
      

        Attachments

          Activity

            People

            • Assignee:
              jcgarcia Juan Carlos García del Canto
              Reporter:
              jcgarcia Juan Carlos García del Canto
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: