Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-2640

Multiple lines commands in the CLI should be possible

    Details

    • Similar Issues:
      Show 10 results 

      Description

      When cutting and pasting CLI examples from docs or labs, it should be possible to respect multiple lines. Either the MySQL command shell style with a trailing ; to make the command "executable" or using a \ as in Linux Shells. For the win both could work. At least one has to work so that it is easy to cut and paste commands from docs/web sites into the CLI.

        Gliffy Diagrams

          Activity

          Hide
          r.reimann Robert Reimann added a comment -

          Support for multi line commands is not just a matter of copy and pasting of examples. It would considerably improve the readability and maintainability of large CLI scripts with long command lines.

          Show
          r.reimann Robert Reimann added a comment - Support for multi line commands is not just a matter of copy and pasting of examples. It would considerably improve the readability and maintainability of large CLI scripts with long command lines.
          Hide
          aloubyansky Alexey Loubyansky added a comment -

          Done. You can use '\' to divide commands and operations across multiple lines.

          Show
          aloubyansky Alexey Loubyansky added a comment - Done. You can use '\' to divide commands and operations across multiple lines.
          Hide
          jtyrrell Jim Tyrrell added a comment -

          What if I make a typo can I up arrow and make a fix and "replay" the command like I can in a Linux/Dos Shell? Are these '\' added automatically on long lines? Did you look at the MySQL client which I think has behavior that is close to this?

          Show
          jtyrrell Jim Tyrrell added a comment - What if I make a typo can I up arrow and make a fix and "replay" the command like I can in a Linux/Dos Shell? Are these '\' added automatically on long lines? Did you look at the MySQL client which I think has behavior that is close to this?
          Hide
          aloubyansky Alexey Loubyansky added a comment -

          No, you can't navigate through the lines. I think It's gonna be too tricky to do that with the current state of things. But that'd be useful.
          '\' are not automatically added. You have to press Enter. I don't think we should support that.
          I have an idea of the feature in MySQL but it's been a long time since I used it.

          Show
          aloubyansky Alexey Loubyansky added a comment - No, you can't navigate through the lines. I think It's gonna be too tricky to do that with the current state of things. But that'd be useful. '\' are not automatically added. You have to press Enter. I don't think we should support that. I have an idea of the feature in MySQL but it's been a long time since I used it.

            People

            • Assignee:
              aloubyansky Alexey Loubyansky
              Reporter:
              jtyrrell Jim Tyrrell
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development