Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphql get-schema --all to refresh schemas for all projects/endpoints #54

Closed
schickling opened this issue Dec 1, 2017 · 3 comments · Fixed by #93
Closed

graphql get-schema --all to refresh schemas for all projects/endpoints #54

schickling opened this issue Dec 1, 2017 · 3 comments · Fixed by #93
Assignees

Comments

@schickling
Copy link
Contributor

No description provided.

@kbrandwijk
Copy link
Contributor

I will create a PR after the other get-schema related PR's are merged, to avoid conflicts.

@kbrandwijk
Copy link
Contributor

Would you like the cli to process all projects if you...

  1. Don't specify a project, or:
  2. Explicitly specify --all?

@kbrandwijk kbrandwijk self-assigned this Jan 2, 2018
@schickling
Copy link
Contributor Author

I'd say (2)

kbrandwijk added a commit to kbrandwijk/graphql-cli that referenced this issue Jan 3, 2018
- fix: error on multiple `-p`
- fix: error on multiple `-e`
- feat: allow `-p *` and `-e *` to run get-schema on all projects and/or all endpoints
- improved console output and error handling

Closes Urigo#54
kbrandwijk added a commit that referenced this issue Jan 3, 2018
- fix: error on multiple `-p` (caused exception before)
- fix: error on multiple `-e` (caused exception before)
- feat: allow `-p *` and `-e *` to run get-schema on all projects and/or all endpoints. These arguments can be mix 'n match, so all of the following are valid:
  * `graphql get-schema -p project1 -p project2 -e *`
  * `graphql get-schema -p project1 -p project2 -e dev -e test` (only works if both projects have `dev` and `test` endpoints)
  * `graphql get-schema -p * -e dev` (only works if all projects have a `dev` endpoint)
  * `graphql get-schema -p * -e *`
  * `graphql get-schema -p *` (only works if all projects have only one endpoint)
- feat: `--all` is shorthand for `-p * -e *`
- improved console output and error handling

Closes #54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants