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

Include global parameters in all Spring Roo commands

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Complete
    • 2.0.0.M1
    • 2.0.0.M2
    • 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();
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: