Skip to content

Commit

Permalink
Added a comment and updated a script.
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverLok committed Dec 10, 2024
1 parent 79e5e5f commit 591941e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/cmd/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/update_api_description.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 591941e

Please sign in to comment.