-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd: move validation into cmd directories
We can work out the hierarchy more carefully and likely merge these, but these tools have been moved into cmd/, per Go best practices. Signed-off-by: Stephen J Day <stephen.day@docker.com>
- Loading branch information
Showing
4 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
default: help | ||
|
||
help: | ||
@echo "Usage: make <target>" | ||
@echo | ||
@echo " * 'fmt' - format the json with indentation" | ||
@echo " * 'validate' - build the validation tool" | ||
|
||
fmt: | ||
for i in *.json ; do jq --indent 2 -M . "$${i}" > xx && cat xx > "$${i}" && rm xx ; done | ||
|
||
.PHONY: validate-examples | ||
validate-examples: oci-validate-examples | ||
./oci-validate-examples < manifest.md | ||
|
||
oci-validate-json: validate.go | ||
go build ./cmd/oci-validate-json | ||
|
||
oci-validate-examples: cmd/oci-validate-examples/main.go | ||
go build ./cmd/oci-validate-examples | ||
|
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.