Skip to content

New XML Parameter type - Array #312

@ghost

Description

Would like to be able provide an array to a parameter and have Plaster loop through those values.
For example:
PlasterManifest.xml:

Manifest.json :

{

    Employees = [
    <%=$PLASTER_ARRAY_EmployeeName>
      {
   	Name = <%=$PLASTER_PARAM_EmployeeName>
   	Site = "GHQ"
    }
          <%=$PLASTER_ARRAY_EmployeeName%>
   ]

}

Invoke-Plaster
EmployeeName : "Bob Jones","Jenna Jones"

Resultant file:

{

     Employees = [
       {
		Name = "Bob Jones"
		Site = "GHQ"
        }
        {
		Name = "Jenna Jones"
		Site = "GHQ"
	}]

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions