Skip to content

Commit

Permalink
Merge pull request #34 from mlocati/cif-install-package-options
Browse files Browse the repository at this point in the history
Allow specifying package install options via CIF
  • Loading branch information
mlocati authored Nov 14, 2024
2 parents 9e95632 + 85ab32c commit b4046cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/resources/concrete-cif-1.0.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,14 @@
<xs:sequence>
<xs:element name="package" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="option" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="string-required" use="required" />
<xs:attribute name="value" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="handle" type="handle-required" use="required" />
<xs:attribute name="full-content-swap" type="xs:string" fixed="true" use="optional" />
<xs:attribute name="content-swap-file" type="string-required" use="optional" />
Expand Down
9 changes: 9 additions & 0 deletions src/test/resources/cifs-good/import-packages.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<concrete5-cif version="1.0">
<packages>
<package handle="my_package" full-content-swap="true" content-swap-file="my-content.xml">
<option name="scalar" value="value" />
<option name="array[]" value="value1" />
<option name="array[]" value="value2" />
</package>
</packages>
</concrete5-cif>

0 comments on commit b4046cb

Please sign in to comment.