Open
Conversation
CLI出力の抽象化のための基盤コンポーネントを追加: - OutputStyle: 色付けスタイルインターフェース - AnsiStyle: ANSIエスケープシーケンス実装(標準出力用) - PlainStyle: 空文字列実装(バッファ出力用) - CommandOutput: 出力抽象化インターフェース - ConsoleOutput: 標準出力実装 - BufferedOutput: バッファ蓄積実装(テスト・内部連携用)
- CommandContextにCommandOutput型のoutputフィールドを追加 - println/print便利メソッドとstyleショートカットを追加 - Commandインターフェースのシグネチャにctxパラメータを追加
CLIコマンド実行時の出力をCommandOutput経由に変更: - CLIModeHandler: handleCommandにctx引数追加、出力をctx経由に - EncodeModeHandler/DecodeModeHandler: extensionCommandにctx引数追加 - GulpTerminal: 出力をctx経由に - LogCommand/SourceCommand: シグネチャ更新 - TerminalSource/FallBackTerminalSource: 出力をctx経由に
新規テスト: - BufferedOutputTest: バッファ出力のユニットテスト - OutputStyleTest: AnsiStyle/PlainStyleのテスト - CommandOutputIntegrationTest: コマンド出力の統合テスト 既存テスト改善: - SourceCommandTest: BufferedOutput使用に更新 - TerminalCoroutinesTest: BufferedOutput使用に更新
引数をそのまま出力するechoコマンドを実装 BufferedOutputを使用した内部連携のデモとして 標準出力を汚さずに結果を取得できることを検証
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.
GUI/CLIで共通の初期化処理をAppInitializerにまとめました
CLIコマンドの出力を抽象化し、テストの改善を行いました