Fix hack/update-api-reference-docs.sh script

This commit is contained in:
Wojciech Tyczynski
2015-12-16 15:17:42 +01:00
parent e309583ff1
commit a73e1f6b2f
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ cp /swagger-source/"$1".json input.json
#insert a TOC for top level API objects
buf="== Top Level API Objects\n\n"
top_level_models=$(grep IsAnAPIObject ./register.go | sed 's/func (\*\(.*\)) IsAnAPIObject/\1/g' \
top_level_models=$(grep GetObjectKind ./register.go | sed 's/func (obj \*\(.*\)) GetObjectKind(\(.*\)) .*/\1/g' \
| tr -d '()' | tr -d '{}' | tr -d ' ')
for m in $top_level_models
do