influx-cli/etc/checkopenapi.sh
Sam Arnold 9747d05ae1
refactor: expose generated code and client business logic to share with Kapacitor (#103)
* refactor: take clients out of internal

* refactor: move stdio to pkg

* Move internal/api to api

* refactor: final changes for Kapacitor to access shared functionality

* chore: regenerate mocks

* fix: bad automated refactor

* chore: extra formatting not caught by make fmt
2021-05-25 10:05:01 -04:00

11 lines
286 B
Bash
Executable File

#!/usr/bin/env bash
set -e
declare -r ETC_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
${ETC_DIR}/generate-openapi.sh
if ! git --no-pager diff --exit-code -- api; then
>&2 echo "openapi generated client doesn't match spec, please run 'make openapi'"
exit 1
fi