修改代码注释为中文

This commit is contained in:
zyj
2026-03-04 14:10:30 +08:00
parent 89d64cb117
commit 2cb4e1a87b
16 changed files with 1031 additions and 69 deletions

View File

@@ -18,7 +18,7 @@ func NewLinuxPlatform() *LinuxPlatform {
}
func (p *LinuxPlatform) OS() string { return "linux" }
func (p *LinuxPlatform) Arch() string { return "amd64" } // TODO: detect properly
func (p *LinuxPlatform) Arch() string { return "amd64" } // TODO: 正确检测架构
func (p *LinuxPlatform) HomeDir() string { return p.homeDir }
func (p *LinuxPlatform) ConfigDir() string {
@@ -40,12 +40,12 @@ func (p *LinuxPlatform) GetEnvVar(key string) string {
}
func (p *LinuxPlatform) SetEnvVar(ctx context.Context, key, value string) error {
// TODO: Add to shell profile
// TODO: 写入 Shell 配置文件以持久化
return os.Setenv(key, value)
}
func (p *LinuxPlatform) AddToPath(ctx context.Context, dir string) error {
// TODO: Add to shell profile
// TODO: 添加到 Shell 配置文件
return nil
}