Skip to content

Commit

Permalink
cmd: move validation into cmd directories
Browse files Browse the repository at this point in the history
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
stevvooe committed Apr 28, 2016
1 parent 197a8a8 commit 48c6221
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 15 deletions.
22 changes: 22 additions & 0 deletions Makefile
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.
15 changes: 0 additions & 15 deletions schema/Makefile

This file was deleted.

0 comments on commit 48c6221

Please sign in to comment.