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

Version subcommand #296

Open
kevinmichaelchen opened this issue Sep 14, 2023 · 1 comment
Open

Version subcommand #296

kevinmichaelchen opened this issue Sep 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@kevinmichaelchen
Copy link
Contributor

This is definitely a nice-to-have.

I'm packaging up the genqlient CLI as part of Tea.

See PR here: pkgxdev/pantry#3318

A version subcommand would be nice for end users.

I can try to make a PR for this at some point if it's cool.

https://github.com/alexflint/go-arg#subcommands

@kevinmichaelchen kevinmichaelchen added the enhancement New feature or request label Sep 14, 2023
@benjaminjkraft
Copy link
Collaborator

This seems fine (I think we can just return what debug.BuildInfo says, we already have an init subcommand so it should be easy to add version alongside) -- but does it work for you to do go version $(which genqlient) or similar? That will give you the same data with less work :-) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants