Skip to content

Comments

cli: add new --gql @query-file support#162

Merged
sondove merged 4 commits intonovem-code:mainfrom
sondove:main
Jan 8, 2026
Merged

cli: add new --gql @query-file support#162
sondove merged 4 commits intonovem-code:mainfrom
sondove:main

Conversation

@sondove
Copy link
Contributor

@sondove sondove commented Jan 7, 2026

This commit adds a new way to run gql queries from the command line

Fixes #161

This commit adds a new way to run gql queries from the command line

Fixes novem-code#161
@bjornars
Copy link
Contributor

bjornars commented Jan 7, 2026

There's a fine line between nice tools for developers and nice tools for end users. Maybe this would be more at home in the TUI?

@sondove
Copy link
Contributor Author

sondove commented Jan 7, 2026

There's a fine line between nice tools for developers and nice tools for end users. Maybe this would be more at home in the TUI?

Yes and no, I think we should treat the gql endpoint as a first class citizen to our platform similar to rest. Which means both good tools as well as ergonomic utils.

So in my mind, having some native gql utilities in the cli is fine (for example we already have --gql to dump the output of the underlying gql query result)

The TUI is currently too much of an internal tool as well.

@sondove
Copy link
Contributor Author

sondove commented Jan 7, 2026

Also added support for stdin so claude, codex et al can use it inline in their workflows without having to create temp files

@sondove sondove requested review from bjornars and myme January 7, 2026 15:56
Copy link
Contributor

@bjornars bjornars left a comment

Choose a reason for hiding this comment

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

🕸️

Copy link
Collaborator

@myme myme left a comment

Choose a reason for hiding this comment

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

🔗

@sondove sondove merged commit 839f078 into novem-code:main Jan 8, 2026
4 checks passed
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.

cli: add utility to run gql queries from the command line

3 participants