finished script?

This commit is contained in:
Jakub Kropáček 2024-06-08 13:17:04 +02:00
parent 21a37508c2
commit 33c5973821

View file

@ -40,6 +40,15 @@ def init_bw_session(bw_path: Path):
bitwarden_session = res.stdout 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]: def find_templates(base_dirs: set[Path]) -> set[Path]:
env_templates: set[Path] = set() env_templates: set[Path] = set()
for path in base_dirs: for path in base_dirs: