Skip to content

Print release and build information #15

Closed
@dareste

Description

@dareste

Describe the solution you'd like
Right now, the release and build information is printed in the supportpkg.log file:

2024/06/28 14:42:46.667356 nginx-supportpkg.go:48: Starting kubectl-nginx-suportpkg - version: v0.1.2 - build: d096d0c83e5fcce53ea45766a442fdfb402eb195

It would be helpful to show the release / build information without the need to create a supportpkg. This could be done via a specific -v flag, or by adding the version information as part of the default output when the binary is invoked without any flag:

 > kubectl nginx-supportpkg
...
Version: v1.0.2
Usage:
 nginx-supportpkg [-n|--namespace] ns1 [-n|--namespace] ns2 [-p|--product] nic...
 nginx-supportpkg [-n|--namespace] ns1,ns2 [-p|--product] nic...
...

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions