Skip to content

[chore] streamline logging and terminal setup#23

Merged
vt128 merged 1 commit into
masterfrom
chore/logging-and-terminal-tidy
Jun 22, 2026
Merged

[chore] streamline logging and terminal setup#23
vt128 merged 1 commit into
masterfrom
chore/logging-and-terminal-tidy

Conversation

@vt128

@vt128 vt128 commented Jun 22, 2026

Copy link
Copy Markdown
Member

Routine maintenance of the logging and terminal-init plumbing:

  • Build the console logger and the package no-op loggers directly with zap (the console logger writes to stderr, keeping diagnostics off stdout).
  • Enable Windows ANSI / virtual-terminal processing with a small build-tagged helper over golang.org/x/sys/windows (already in the dependency tree).
  • Use the standard library for the blank-string and OS checks, and a small inline colorizer for the version banner.

No change to CLI behaviour; go.mod/go.sum are tidied accordingly. Full -race and the Docker golang:1.25 floor are green; host + Windows cross-compile both build.

Build the console and no-op loggers directly with zap instead of a thin wrapper,
enable Windows ANSI handling via golang.org/x/sys/windows (already in the
dependency tree), and use the standard library for the blank-string and OS
checks plus a small inline colorizer for the version banner. No change to CLI
behaviour; go.mod is tidied accordingly.
@vt128 vt128 merged commit 6129e13 into master Jun 22, 2026
6 checks passed
@vt128 vt128 deleted the chore/logging-and-terminal-tidy branch June 22, 2026 07:03
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