Skip to content

Commit 604b45f

Browse files
docs: README badges
1 parent 94834ae commit 604b45f

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
# graphql-schema-picker
22

3+
[![GoReportCard example](https://goreportcard.com/badge/github.com/kevinmichaelchen/graphql-schema-picker)](https://goreportcard.com/report/github.com/kevinmichaelchen/graphql-schema-picker)
4+
[![version](https://img.shields.io/github/v/release/kevinmichaelchen/graphql-schema-picker?include_prereleases&label=latest&logo=ferrari)](https://github.com/kevinmichaelchen/graphql-schema-picker/releases/latest)
5+
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/kevinmichaelchen/graphql-schema-picker)](https://codeclimate.com/github/kevinmichaelchen/graphql-schema-picker)
6+
37
<img width="600" src="https://github.com/kevinmichaelchen/graphql-schema-picker/assets/5129994/0b7c6707-a76f-4a49-9539-279969307fc8" />
48

59
A CLI for selectively pruning your GraphQL schemas.
610

7-
The CLI accepts a Schema Definition Language file, and then selectively picks
11+
The CLI accepts a Schema Definition Language file, and then selectively picks
812
(or filters out) certain elements.
913

1014
## Motivation
1115

12-
This tool was born out of a desire to reuse Hasura's schema in upstream
16+
This tool was born out of a desire to reuse Hasura's schema in upstream
1317
microservices. In my case, it meant discarding the tens of thousands of lines
14-
in the schema that was introspected from Hasura, and really only paying
18+
in the schema that was introspected from Hasura, and really only paying
1519
attention to the few types I cared about.
1620

1721
## Example
1822

19-
For a realistic example of what a Hasura GraphQL schema looks like, check out
23+
For a realistic example of what a Hasura GraphQL schema looks like, check out
2024
our example [**SDL file**][sdl-file] (Schema Definition Language).
2125

2226
[sdl-file]: ./examples/hasura.sdl.graphqls
@@ -25,7 +29,7 @@ our example [**SDL file**][sdl-file] (Schema Definition Language).
2529

2630
### Installing
2731

28-
Eventually, I may package this up in Tea and maybe even Homebrew (via
32+
Eventually, I may package this up in Tea and maybe even Homebrew (via
2933
[Goreleaser][goreleaser-brew]).
3034

3135
For the time being, it should be installable with Go:
@@ -87,5 +91,6 @@ go build -v -trimpath -ldflags="-s -w" -o ./bin/graphql-schema-picker ./cmd/grap
8791
Create a new Git tag
8892

8993
```shell
90-
git tag -a $(svu next) -m "$(svu next)"
91-
```
94+
sh <(curl https://tea.xyz) +github.com/caarlos0/svu \
95+
git tag -a $(svu next) -m "$(svu next)"
96+
```

0 commit comments

Comments
 (0)