Skip to content

CLI version to match Github tags #1600

@drzero42

Description

@drzero42

I am the maintainer for a tool called vk which can install single-binary CLI tools from github releases for you, and automatically update them for you. This works by the tool being able to output which version it is, then looking up the latest release on Github, looking at the associated tag and then comparing them to see if a newer version is available.

The pgo CLI tool does not currently look to be able to report it's own version, only the version of the postgres-operator installed in a cluster. That makes it impossible for vk to handle pgo currently.

It would be great if a subcommand could be added that will report the client version, rather than the server version. The current version subcommand could also be augmented with a --client-only or similar argument, to only report the client version. This version information would need to follow the Github tags that are also used for releases. If Goreleaser is used, it is fairly simple to get this information added during build.

Being able to identify which version of the pgo tool is installed, is obviously also useful to people not using vk, so they won't have to guess whether it is time to update or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions