fix: rtk init 用 yes 管道自动确认,消除手动按 Enter
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -674,8 +674,8 @@ CARGO_NET_GIT_FETCH_WITH_CLI=true cargo install --git https://github.com/rtk-ai/
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# rtk init -g:安装 Claude Code PreToolUse hook(幂等)
|
# rtk init -g:安装 Claude Code PreToolUse hook(幂等,yes 管道自动确认所有提示)
|
||||||
Invoke-WSL ". ~/.cargo/env 2>/dev/null; rtk init -g --auto-patch 2>/dev/null || true" -IgnoreError | Out-Null
|
Invoke-WSL ". ~/.cargo/env 2>/dev/null; yes | rtk init -g --auto-patch 2>/dev/null || true" -IgnoreError | Out-Null
|
||||||
Write-OK "rtk hook 已注册 (rtk init -g),重启 Claude Code 后生效"
|
Write-OK "rtk hook 已注册 (rtk init -g),重启 Claude Code 后生效"
|
||||||
|
|
||||||
# ══════════════════════════════════════════════════════════════
|
# ══════════════════════════════════════════════════════════════
|
||||||
|
|||||||
Reference in New Issue
Block a user