diff --git a/internal/cmd/request.go b/internal/cmd/request.go index b180ef84..d07cecbc 100644 --- a/internal/cmd/request.go +++ b/internal/cmd/request.go @@ -166,6 +166,7 @@ func ConvertApiResponseToTable(response core.APIResponse) (string, bool) { // Attempt to convert a slice of entries into a TSV table. // Headers are taken from the keys of the first entry. // Rows are the value's of each entry in the slice. +// Return the table and true on a successful conversion or false if there is an issue converting. func convertEntriesToTable(entries []any) (string, bool) { if len(entries) == 0 { return "", false diff --git a/scripts/update_api_description.sh b/scripts/update_api_description.sh index b4833d9e..d67f8635 100755 --- a/scripts/update_api_description.sh +++ b/scripts/update_api_description.sh @@ -17,7 +17,7 @@ function main() { mkdir -p "${OUT_DIR}" - go run cmd/describe-api/main.go > "${OUT_FILE}" + go run cmd/call-endpoint/main.go metadata/describe > "${OUT_FILE}" if [ $? -ne 0 ]; then echo "Failed to update ${OUT_FILE}." return 1