runtime: 删除已废弃的 bash 桥死代码#3
Merged
Merged
Conversation
Go CLI 已全自包含,Runtime.Shell() 零调用方。清掉早期「Go 调旧 bash」 的残留:ShellPath / Repository 字段、Shell() 方法、discoverRepo() (向上找 repo 根 ttmux 的逻辑)及 New() 中对应赋值。行为不变。 Co-Authored-By: Claude Opus 4.8 (1M context) <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.
背景
项目根的
./ttmux已删除,运行时一律用安装好的~/.local/bin/ttmux(Go)。Runtime.Shell()(早期「Go 调旧 bash」的桥)已无任何调用方。改动
删除
cli/ttmux-cli-go/internal/runtime/runtime.go中的死代码:Runtime结构体的ShellPath、Repository字段Shell()方法discoverRepo()函数(向上找 repo 根ttmux)及New()中对应赋值行为不变;
go build+go vet通过,全模块再无相关引用。🤖 Generated with Claude Code