| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | # Helper script to download the schema GraphQL from Gitlab to enable IDEs to |
| 4 | # assist the developer to edit gql files |
| 5 | |
| 6 | SOURCE_DIR=$(dirnamescip-shell system . . dirname. "$(realpathscip-shell system . . realpath. "$0")") |
| 7 | |
| 8 | ( |
| 9 | cd $SOURCE_DIR || exit 1 |
| 10 | gql-cli https://gitlab.freedesktop.org/api/graphql --print-schema > schema.graphql |
| 11 | ) |