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

add --version flag on cli for xcaddy itself #22

Closed
dkebler opened this issue Jun 30, 2020 · 1 comment · Fixed by #67
Closed

add --version flag on cli for xcaddy itself #22

dkebler opened this issue Jun 30, 2020 · 1 comment · Fixed by #67
Labels
enhancement New feature or request

Comments

@dkebler
Copy link

dkebler commented Jun 30, 2020

so I can easier tell what version of xcaddy I am running can you please add a --version flag. I mean the version of xcaddy not caddy2.

xcaddy --version

Even better if it doesn't impact (i.e. <1000ms) compile time have it always check and report if it needs to update and offer to go get -u right there.

@mholt mholt added the enhancement New feature or request label Jun 30, 2020
@high3eam
Copy link

Funny, today I tried the same thing :D Would be great to have this flag!

hnrk@host1:~$ xcaddy --version
go list -m: not using modules
2021/02/19 10:11:41 [ERROR] exec [go list -m]: exit status 1:
hnrk@host1:~$ xcaddy version
go list -m: not using modules
2021/02/19 10:11:48 [ERROR] exec [go list -m]: exit status 1:

Makes it easier to see if there's already a newer version available that fixed bugs in currently installed version.

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

Successfully merging a pull request may close this issue.

3 participants