Skip to content

fix(cli): honor PGPORT when --port is omitted#108

Open
wuyua9 wants to merge 1 commit into
balajz:mainfrom
wuyua9:fix/pgport-default-precedence
Open

fix(cli): honor PGPORT when --port is omitted#108
wuyua9 wants to merge 1 commit into
balajz:mainfrom
wuyua9:fix/pgport-default-precedence

Conversation

@wuyua9

@wuyua9 wuyua9 commented Jul 14, 2026

Copy link
Copy Markdown

Summary

  • honor PGXPORT / PGPORT when --port is omitted
  • preserve explicit --port precedence, including --port=5432
  • prefill the interactive port field from the environment when available

Tests

  • GOPROXY=direct /tmp/go/bin/go test ./internal/cli
  • GOPROXY=direct /tmp/go/bin/go test ./...

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.

1 participant