Skip to content

Conversation

@djthorpe
Copy link
Member

@djthorpe djthorpe commented Dec 16, 2025

This PR adds a version command to the pgmanager CLI tool and fixes the HTTP server address flag naming. The version command displays build information including Git source, commit hash, branch, build time, and compiler details. The HTTP flag was renamed from "http" to "addr" to make the command-line interface clearer (avoiding the redundant --http.http and providing the more intuitive --http.addr).

  • Added version command that displays application version and build information
  • Renamed HTTP flag from "Listen" to "Addr" with environment variable support (PG_ADDR)
  • Minor import reordering for consistency

@djthorpe djthorpe self-assigned this Dec 16, 2025
Copilot AI review requested due to automatic review settings December 16, 2025 07:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a version command to the pgmanager CLI tool and fixes the HTTP server address flag naming. The version command displays build information including Git source, commit hash, branch, build time, and compiler details. The HTTP flag was renamed from "http" to "addr" to make the command-line interface clearer (avoiding the redundant --http.http and providing the more intuitive --http.addr).

Key Changes:

  • Added version command that displays application version and build information
  • Renamed HTTP flag from "Listen" to "Addr" with environment variable support (PG_ADDR)
  • Minor import reordering for consistency

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
cmd/pgmanager/version.go New file implementing the version command to display build and version information
cmd/pgmanager/server.go Updated to use HTTP.Addr instead of HTTP.Listen for consistency
cmd/pgmanager/main.go Renamed HTTP struct field from Listen to Addr, added VersionCommands to CLI, and minor import reordering

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@djthorpe djthorpe merged commit 1d66669 into main Dec 16, 2025
7 checks passed
@djthorpe djthorpe deleted the djt/1216/version branch December 16, 2025 07:41
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.

2 participants