Spring Roo
  1. Spring Roo
  2. ROO-877

Add tab support for the "hint" command

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M3
    • Component/s: @ ROO SHELL
    • Labels:
      None

      Description

      Please add tab support for the "hint" command.

      I noticed that if I type "hint con[tab]", nothing happens. It would be nice to have tab expansion using hint.

        Issue Links

          Activity

          Hide
          Ben Alex added a comment -

          This is basically working now.

          Because "hint" is designed to be as forgiving as possible, by default the non-presentation of a topic will cause the command to automatically look up the current topic and display it.

          This means the shell infrastructure's normal handling of tab is different, as there is no mandatory argument. As with the rest of Roo, TAB will only present options if a mandatory option name is specified, or "--" is specified.

          Therefore, to access TAB assist with the "hint" command, one needs to type "hint --TAB TAB". This will expand to "hint --topic" and then the list of options. This is likely to be useful to those who don't want to type the hint topics in by hand.

          Git commit f170c196293cbc07ff378b61eee8f5464059527d.

          Show
          Ben Alex added a comment - This is basically working now. Because "hint" is designed to be as forgiving as possible, by default the non-presentation of a topic will cause the command to automatically look up the current topic and display it. This means the shell infrastructure's normal handling of tab is different, as there is no mandatory argument. As with the rest of Roo, TAB will only present options if a mandatory option name is specified, or "--" is specified. Therefore, to access TAB assist with the "hint" command, one needs to type "hint --TAB TAB". This will expand to "hint --topic" and then the list of options. This is likely to be useful to those who don't want to type the hint topics in by hand. Git commit f170c196293cbc07ff378b61eee8f5464059527d.

            People

            • Assignee:
              Ben Alex
              Reporter:
              Jim Clark
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: