hermes update更新自动yes

想在每次运行 hermes update 时,自动跳过提示并默认执行某个选择(或者不让它每次都问你),这通常是因为你在本地修改了 Hermes 的代码,导致它在更新前必须执行 git stash 保护你的改动


使用 --yes-y 参数(最直接)

大多数 CLI 工具在更新时都支持自动确认参数。你可以尝试在命令后面加上参数来自动同意恢复本地修改:

1
2
3
hermes update -y
# 或者
hermes update --yes
mac@GaGa hermes-workspace % hermes update -h
usage: hermes update [-h] [--gateway] [--check] [--no-backup] [--backup] [--yes] [--branch NAME] [--force]

....
  --yes, -y      Assume yes for interactive prompts (config migration, stash restore). API-key entry is skipped; run  # auto allow
...