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 command to the default framework CLI commands #458

Merged
merged 6 commits into from
Dec 9, 2024

Conversation

kgrigorev
Copy link
Contributor

@kgrigorev kgrigorev commented Dec 2, 2024

This PR adds a version command to the default Flamingo CLI commands. It also refactors /version endpoint of the system_endpoint to use a function for printing different useful infos about application (application version set via ldflags, Git revision, version of the Go runtime etc.). The same function is used for the CLI command.

$ myapp version

        App version:	1.2.3
 Go runtime version:	go1.23.3
       VCS revision:	2c8efce6b95f0216be3834270022cd53bef45300
               Path:	go.aoe.com/whitelabel-airline/flamingo
   Flamingo version:	v3.11.0

@kgrigorev kgrigorev self-assigned this Dec 2, 2024
@kgrigorev kgrigorev requested a review from a team December 3, 2024 08:18
@kgrigorev kgrigorev merged commit 7903a65 into i-love-flamingo:master Dec 9, 2024
5 checks passed
@kgrigorev kgrigorev deleted the add_version_command branch December 9, 2024 13:49
@github-actions github-actions bot mentioned this pull request Dec 9, 2024
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.

None yet

2 participants