Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2885

Refactor/abstract command parsing/splitting/merging

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Complexity:
      M

      Description

      When I was working with the code that spawns subprocesses I noticed that in various places we split and merge the whole command to the executable and individual arguments only to merge it again later and split it again, etc.

      I think this should be abstracted into some nice "object" that has some internal representation (a sequence, maybe?) that can be used to insert/append arguments etc. and which can then provide char **argv for direct execution as well as char *complete_command for shell exection, logging etc.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vpodzime Vratislav Podzimek
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel