add vendoring with go dep

This commit is contained in:
Adrian Todorov
2017-10-25 20:52:40 +00:00
parent 704f4d20d1
commit a59409f16b
1627 changed files with 489673 additions and 0 deletions

18
vendor/github.com/vmware/govmomi/scripts/debug-xmlformat.sh generated vendored Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash -e
# pipe the most recent debug run to xmlformat
cd ${GOVC_DEBUG_PATH-"$HOME/.govmomi/debug"}
cd $(ls -t | head -1)
header() {
printf "<!-- %s %s/%s\n%s\n-->\n" "$1" "$PWD" "$2" "$(tr -d '\r' < "$3")"
}
for file in *.req.xml; do
base=$(basename "$file" .req.xml)
header Request "$file" "${base}.req.headers"
xmlformat < "$file"
file="${base}.res.xml"
header Response "$file" "${base}.res.headers"
xmlformat < "$file"
done