tutone icon indicating copy to clipboard operation
tutone copied to clipboard

tutone generate calls fetch (not documented?)

Open codeliger opened this issue 5 months ago • 0 comments

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 and tutone 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 

codeliger avatar Aug 28 '24 15:08 codeliger