From 5ebd07e52b4ebc1f59b603bbd4fe781871056755 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 23 Nov 2025 15:56:13 +0800 Subject: Add auto update feature via JV_AUTO_UPDATE env var When enabled, automatically runs `jv update` if vault content has been modified by local operations. --- scripts/jv_cli.ps1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts/jv_cli.ps1') diff --git a/scripts/jv_cli.ps1 b/scripts/jv_cli.ps1 index 0584c21..b77997c 100644 --- a/scripts/jv_cli.ps1 +++ b/scripts/jv_cli.ps1 @@ -8,6 +8,11 @@ $SCRIPT_DIR = Split-Path -Parent $MyInvocation.MyCommand.Definition # Supported: en, zh-CN # $env:JV_LANG = "en" +# Use JV_AUTO_UPDATE to set auto content update (yes/no) +# After local operations that change Upstream Vault content +# Next `jv` command will auto-run `jv update` +$env:JV_AUTO_UPDATE = "yes" + ############### ### ALIASES ### ############### -- cgit