AQIT 0.1.0
Loading...
Searching...
No Matches
logout_display.py
Go to the documentation of this file.
1# Copyright (c) 2025-present Aquin Labs Private Limited. All Rights Reserved.
2"""ASCII terminal layout for `aquin logout`."""
3
4from __future__ import annotations
5
6from aquin.ascii_layout import box_line, center, print_banner, print_section, rule, width
7
8
9def render_logout(*, account: str | None = None) -> None:
10 w = width()
11 print_banner(subtitle="LOGOUT", w=w)
12
13 if account:
14 msg = f"removed account {account} from this machine"
15 else:
16 msg = "logged out locally (token removed from this machine)"
17
18 print_section(
19 "DONE",
20 [
21 box_line(f" {msg}", w),
22 box_line("", w),
23 box_line(" web token is not revoked - regenerate on aquin.app if needed", w),
24 ],
25 w=w,
26 )
27 print(rule("-", w))
28 print(center("next: aquin login", w))
29 print(rule("-", w))
30 print()
None render_logout(*, str|None account=None)