Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-28832

Create a package of repository console scripts

    Details

    • Type: Story Story
    • Status: Specification
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Over time, lots of console scripts related to the repository were created, either in tutorials or packages: creating content, removing subtrees, navigating the content tree, inspecting content types...

      As suggested by André Rømcke, those are actually very useful. They could be grouped into a package (suggestion: ezsystems/repository-console-scripts) for the time being. Having that package would give us a first step, open up contributions by 3rd parties, and allow us to iterate further.

      Future

      This is probably not the final shape of ezplatform console scripts, as various aspects of this will have to be reconsidered:

      • the scripts may belong next to what they are scripts for (the repository)
      • the input format should be unified for consistency
      • the output should be flexible enough to accommodate for system tools such as awk, cut... to allow for batching and automation.

      Tasks

      • Create the specification document

        Activity

        Hide
        Konrad Oboza added a comment -

        Recently I needed command for creating lots of content in order to reproduce issues with unwanted page scrolling. I used a script which was similar to this one: https://github.com/ezsystems/ezsupport-toolkit/blob/master/src/bundle/Command/CreateFoldersCommand.php

        Show
        Konrad Oboza added a comment - Recently I needed command for creating lots of content in order to reproduce issues with unwanted page scrolling. I used a script which was similar to this one: https://github.com/ezsystems/ezsupport-toolkit/blob/master/src/bundle/Command/CreateFoldersCommand.php
        Hide
        Bertrand Dunogier added a comment -

        This one is indeed part of the ones André has mentioned. I may have written a dozen of CreateXXXCommand scripts myself over time

        One issue with those, though, is that they're hardly generic, and actually hard to make generic. Even folder may be modified, and it is I think almost impossible to manually input attribute values as arguments, meaning that we need interactive input processing. In this regard, I had tried matthiasnoback/symfony-console-form, that generates interactive input based on a Symfony form. It might be a good lead to follow, given that we have full support for forms now.

        Show
        Bertrand Dunogier added a comment - This one is indeed part of the ones André has mentioned. I may have written a dozen of CreateXXXCommand scripts myself over time One issue with those, though, is that they're hardly generic, and actually hard to make generic. Even folder may be modified, and it is I think almost impossible to manually input attribute values as arguments, meaning that we need interactive input processing. In this regard, I had tried matthiasnoback/symfony-console-form , that generates interactive input based on a Symfony form. It might be a good lead to follow, given that we have full support for forms now.

          People

          • Assignee:
            Bertrand Dunogier
            Reporter:
            Bertrand Dunogier
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: