Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-15

Support multi-line scripts in console

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.3.1
    • 1.0
    • console
    • Yes

    Description

      If I try to write a script such as

      visitor = {node ->
        println(node.handle)
      }
      
      ContentUtil.visit(root, visitor as ContentUtil.Visitor, new NodeTypeFilter(ItemType.CONTENT))
      

      , it fails, because it tries to execute the script line by line. It would be good if we supported multi-line, one way or another (shift-enter does not submit, or defered execution, or...)

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              fgrilli Federico Grilli
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD