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

feat: add raw query command functionality #328

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

shreddedbacon
Copy link
Member

@shreddedbacon shreddedbacon commented Mar 21, 2024

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated.
  • Changelog entry has been written

This adds support for the raw command which allows users to pass raw graphql commands to the API. The output is raw JSON like the API would respond with, this way tools like jq can be used on the output.

Example to list all projects.

lagoon raw --raw 'query allProjects{ allProjects { name } }' | jq

Changelog Entry

closes #141

@shreddedbacon shreddedbacon force-pushed the raw-command branch 2 times, most recently from e1d6772 to 17d9142 Compare March 21, 2024 21:35
@shreddedbacon shreddedbacon marked this pull request as ready for review March 21, 2024 21:54
@shreddedbacon shreddedbacon requested a review from bomoko March 21, 2024 21:54
Copy link
Contributor

@bomoko bomoko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@shreddedbacon shreddedbacon merged commit e6f5bad into main Mar 21, 2024
4 checks passed
@shreddedbacon shreddedbacon deleted the raw-command branch March 21, 2024 22:18
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 this pull request may close these issues.

Ability to send native graphQL queries
2 participants