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

Support multi-line scripts in console

XMLWordPrintable

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

      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...)

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoD