@@ -4,13 +4,15 @@ This is still a WIP, the main use for it now is to download the `schema.json` fr
44
55## Install
66
7- ```
7+ ``` bash
88cargo install graphql_client_cli --force
99```
1010
1111## introspect schema
1212
1313```
14+ Get the schema from a live GraphQL API. The schema is printed to stdout.
15+
1416USAGE:
1517 graphql-client introspect-schema [OPTIONS] <schema_location>
1618
1921 -V, --version Prints version information
2022
2123OPTIONS:
22- --authorization <authorization>
24+ --authorization <authorization> Set the contents of the Authorizaiton header.
2325 --output <output> Where to write the JSON for the introspected schema.
2426
2527ARGS:
3032
3133```
3234USAGE:
33- graphql-client generate [FLAGS] [OPTIONS] <query_path> <schema_path> <module_name> <output>
35+ graphql-client generate [FLAGS] [OPTIONS] <query_path> <schema_path>
3436
3537FLAGS:
3638 -h, --help Prints help information
@@ -45,17 +47,20 @@ OPTIONS:
4547 -d, --deprecation-strategy <deprecation_strategy>
4648 You can choose deprecation strategy from allow, deny, or warn. Default value is warn.
4749
50+ -m, --module_visibility <module_visibility>
51+ You can choose module and target struct visibility from pub and private. Default value is pub.
52+
4853 -o, --selected-operation <selected_operation>
4954 Name of target query. If you don't set this parameter, cli generate all queries in query file.
5055
5156
5257ARGS:
5358 <query_path> Path to graphql query file.
5459 <schema_path> Path to graphql schema file.
55- <module_name> Name of module.
56- <output> Path you want to output to.
5760```
5861
5962If you want to use formatting feature, you should install like this.
6063
61- ` cargo install graphql_client_cli --features rustfmt --force `
64+ ``` bash
65+ cargo install graphql_client_cli --features rustfmt --force
66+ ```
0 commit comments