1.0.0-rc7 • Published 1 year ago

@entlog/prenent v1.0.0-rc7

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
1 year ago

prenent

License

SF plugin to combine several xml packages into one

Install

sf plugins install @entlog/prenent

Usage

If you want to create a package from 2 different files use:

sf prenent package merge -i file1.xml -i file2.xml -o merged.xml

For the help execute:

sf prenent package merge --help

Details

Merged version

The merged file will always contains the biggest version found in the input files.

Comments in packages

This plugin not only merges the types included in your package but also the comments. If you place a comment before the Package tag it will be moved to the merged file. The comments before any type will be moved as well. With an example, given files:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Deployment details... -->
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
   <types>
      <members>Account</members>
   <name>CustomObject</name>
   </types>
   <version>64.0</version>
</Package>
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
   <!-- Details on custom objects -->
   <types>
      <members>Case</members>
   <name>CustomObject</name>
   </types>
   <version>64.0</version>
</Package>
</pre>

The result will include both comments as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Deployment details... -->
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
   <!-- Details on custom objects -->
   <types>
      <members>Account</members>
      <members>Case</members>
   <name>CustomObject</name>
   </types>
   <version>64.0</version>
</Package>