Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 131 forks source link

gcf import doesn't accept folder as a source #516

Open usulpro opened 6 years ago

usulpro commented 6 years ago

Current behavior

$ gcf import --source ./data
 ▸    Source must end with .zip

Get in touch if you need help: https://www.graph.cool/forum
To get more detailed output, run $ export DEBUG="*"

Reproduction

1) gcf export

2) unzip your data to ./data folder

3) shell gcf import --source ./data

Expected behavior?

As it said in gcf import --help it should take data folders as well as .zip files

$ gcf import --help
Usage: graphcool-framework import [flags]

Import data into a service

Flags:
 -s, --source SOURCE    (required) Path to zip or folder including data to import
 -t, --target TARGET    Target name

graphcool-framework/0.11.6 (linux-x64) node-v9.5.0