Skip to content

Commit dadaeba

Browse files
committed
refactor(proxy): 将 Write-Host 替换为 Write-Verbose 以减少控制台输出
使用 Write-Verbose 替代 Write-Host 以便在需要时通过 -Verbose 参数控制输出,减少默认情况下的控制台信息
1 parent e425970 commit dadaeba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎psutils/modules/proxy.psm1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function Set-Proxy {
168168
$env:ALL_PROXY = $url
169169
$env:NO_PROXY = $NoProxyList
170170

171-
Write-Host "✅ 代理已开启: $url" -ForegroundColor Green
171+
Write-Verbose "✅ 代理已开启: $url" -ForegroundColor Green
172172

173173
# 简单连通性检查
174174
try {

0 commit comments

Comments
 (0)