Skip to content

Instantly share code, notes, and snippets.

@alan-morey
Last active October 30, 2017 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alan-morey/e5b916e9d5118a071b545088c4eef2cf to your computer and use it in GitHub Desktop.
Save alan-morey/e5b916e9d5118a071b545088c4eef2cf to your computer and use it in GitHub Desktop.
XmlStarlet
Salesforce package.xml
xmlstarlet sel -t -m _:Package/_:types -s A:T:U _:name -n -v _:name -n -m _:members -s A:T:U . -v "concat(' - ', .)" -n package.xml
xmlstarlet sel -t -m _:Package/_:types -s A:T:U _:name -m _:members -s A:T:U . -v "concat(../_:name, '::', .)" -n package.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment