Sha256: e7a19e1a63863bcc201260612a53428c530971a49050ffa3f82045bcb5585268

Contents?: true

Size: 883 Bytes

Versions: 1

Compression:

Stored size: 883 Bytes

Contents

.PHONY: all
all: .generator .env
	@rm -rf ./lib/datadog_api_client/v1 ./lib/datadog_api_client/v2 ./examples/generated
	@pre-commit run --all-files --hook-stage=manual openapi-generator || true
	@mkdir -p spec/v1 spec/v2 examples/generated/v1 examples/generated/v2
	@cp -R v1/lib/datadog_api_client ./lib/
	@cp -R v2/lib/datadog_api_client ./lib/
	@rm lib/datadog_api_client/v*/version.rb
	@ls v1/docs/*API.md | grep -v IPPrefixesAPI.md | xargs -n1 ./extract-code-blocks.awk -v output="examples/generated/v1"
	@ls v2/docs/*API.md | grep -v IPPrefixesAPI.md | xargs -n1 ./extract-code-blocks.awk -v output="examples/generated/v2"
	@pre-commit run --all-files --hook-stage=manual format-examples || true
	@rm -rf v1 v2
	@pre-commit run --all-files --hook-stage=manual docs || echo "modified files"

.PHONY: .env
.env:
	@echo "export UID=$(shell id -u)\nexport GID=$(shell id -g)" > $@

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 Makefile