Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change default log level from info to warn - Add log level filtering for detailed=false mode - Demote port conflict detection Warn to Info (shown in table instead) - Propagate level field through WithField/WithFields/WithError Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
gopose のテストカバレッジを大幅に拡充し、CLI出力をミニマル&クリーンにリデザイン。新規
internal/presenter/パッケージを SOLID原則に基づいて導入し、衝突回避結果をテーブル形式で表示するようにした。
変更内容
internal/presenter/パッケージを新規作成(Presenterインターフェース +TablePresenter実装)
text/tabwriter(stdlib) によるカラム整列されたテーブル形式の衝突回避結果表示cmd/up.goの冗長なログ出力を削除し、途中経過は簡潔な1行(Scanning.../Resolving...)に統一logger.Info→logger.Debugに降格)(none)を明示表示internal/presenter/table_test.go: TablePresenter の8テストケースinternal/errors/handlers_test.go: エラーハンドラ・ファクトリ関数のユニットテストinternal/scanner/netstat_test.go,port_allocator_test.go:netstatパーサー・ポートアロケータのエッジケーステスト
internal/integration/pipeline_test.go: Parser→Scanner→Generator パイプライン統合テストinternal/integration/e2e_test.go: tempdir 隔離による E2E テストcmd/up_test.go:createPortConfigエッジケーステスト追加testdata/integration/: テスト用 compose ファイル3種追加docs/plans/2026-02-17-output-styling-design.md: 出力スタイリング設計書docs/plans/2026-02-17-output-styling-plan.md: 実装計画書期待すること
--detailフラグによる構造化ログ出力は従来通り維持される動作確認
gopose upを実行し、テーブル形式で結果が表示されるPort Conflicts:gopose upを実行し、テーブル形式で結果が表示されるgopose upを実行し、(none)が表示される(none)行が表示--dry-runオプションでDry run: no files written.が表示される--detailオプションで従来通りの構造化ログが出力されるgo test ./... -count=1が全パッケージ PASS するgo vet ./...で問題がないこと