Skip to content

New XML Parameter type - Array #312

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"
	}]

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions