tutone
tutone copied to clipboard
tutone generate calls fetch (not documented?)
Description
I am trying to generate from an existing schema.json:
$ tutone generate -c shopify/tutone.yml -p shopify -s shopify/schema.json
INFO [2024-08-28T11:41:32-04:00] fetching schema from endpoint:
FATAL [2024-08-28T11:41:32-04:00] unable to fetch from empty URL
There is no documentation mentioning generate runs both fetch and generate and there is no URL flag/param.
Go Version
go version go1.22.5 linux/amd64
Current behavior
tutone generate command is not behaving as documented
Expected behavior
generate go graphql code from a schema.json
Steps To Reproduce
Steps to reproduce the behavior:
- Manually download your GraphQL schema into a schema.json
- Run
tutone help
andtutone generate help
to understand the flags - Run
tutone generate -c shopify/tutone.yml -p shopify -s shopify/schema.json
Get an error:
INFO [2024-08-28T11:41:32-04:00] fetching schema from endpoint:
FATAL [2024-08-28T11:41:32-04:00] unable to fetch from empty URL