diff --git a/scripts/bw2secrets b/scripts/bw2secrets index 4367420..d58c003 100755 --- a/scripts/bw2secrets +++ b/scripts/bw2secrets @@ -40,6 +40,15 @@ def init_bw_session(bw_path: Path): bitwarden_session = res.stdout +def sync_bw_session(bw_path: Path): + global bitwarden_session + res = sp.run( + [bw_path, "sync", "--session", bitwarden_session], capture_output=True, + text=True, + ) + res.check_returncode() + + def find_templates(base_dirs: set[Path]) -> set[Path]: env_templates: set[Path] = set() for path in base_dirs: