Add AuthGuard for inactivity locking and CLI lock command

This commit is contained in:
thePR0M3TH3AN
2025-07-18 15:39:19 -04:00
parent d529877888
commit 11b3707087
4 changed files with 79 additions and 1 deletions

View File

@@ -455,6 +455,14 @@ def vault_lock(ctx: typer.Context) -> None:
typer.echo("locked")
@app.command("lock")
def root_lock(ctx: typer.Context) -> None:
"""Lock the vault for the active profile."""
vault_service, _profile, _sync = _get_services(ctx)
vault_service.lock()
typer.echo("locked")
@vault_app.command("stats")
def vault_stats(ctx: typer.Context) -> None:
"""Display statistics about the current seed profile."""