Skip to content

Commit aaf05c4

Browse files
committed
Modify README to keep consistency with Makefile
Use the name `validate` instead of `schema` for the utility. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
1 parent 38b7860 commit aaf05c4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

schema/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ fmt:
1111
for i in *.json ; do jq --indent 4 -M . "$${i}" > xx && cat xx > "$${i}" && rm xx ; done
1212

1313
validate: validate.go
14+
go get -d ./...
1415
go build ./validate.go
1516

schema/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,18 @@ There is also included a simple utility for facilitating validation of a
2121
```bash
2222
export GOPATH=`mktemp -d`
2323
go get -d ./...
24-
go build .
24+
go build ./validate.go
2525
rm -rf $GOPATH
2626
```
2727

28+
Or you can just use make command to create the utility:
29+
30+
```bash
31+
make validate
32+
```
33+
2834
Then use it like:
2935

3036
```bash
31-
./schema schema.json <yourpath>/config.json
37+
./validate schema.json <yourpath>/config.json
3238
```

0 commit comments

Comments
 (0)