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

[FEATURE REQUEST] allow basic REPL like scripting #118

Open
marcosnils opened this issue Sep 4, 2022 · 0 comments
Open

[FEATURE REQUEST] allow basic REPL like scripting #118

marcosnils opened this issue Sep 4, 2022 · 0 comments

Comments

@marcosnils
Copy link

marcosnils commented Sep 4, 2022

Hey there, congrats for gq, it's really an awesome tool.

Today thinking about the possibilities of gq, I was dreaming with the idea of allowing some sort of basic scripting. A very basic example of what I'd like to do in gq would be something like this:

gql> let repo = query {
  repositories(ref: "foo/foo")
} <CR>

mutation {
  createIssue(ref: "$repo.ref") {
   url
  }
} <CR>

# get the URL of the repo from the mutation response.

The idea would be that without too much complexity, have the ability of wiring some javascript code to prototype a simple flow of calling multiple graphql queries and mutations.

thoughts?

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

No branches or pull requests

1 participant