finished script?
This commit is contained in:
parent
21a37508c2
commit
33c5973821
1 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue