Skip to content

tutone generate calls fetch (not documented?) #255

@codeliger

Description

@codeliger

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions