mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
22 lines
333 B
Python
22 lines
333 B
Python
from pathlib import Path
|
|
|
|
import xdg
|
|
|
|
from pqcli.roster import Roster
|
|
from pqcli.ui import Ui
|
|
|
|
SAVE_PATH = Path(xdg.XDG_CONFIG_HOME) / "pqcli" / "save.dat"
|
|
|
|
|
|
def main() -> None:
|
|
roster = Roster.load(SAVE_PATH)
|
|
|
|
try:
|
|
Ui(roster).run()
|
|
finally:
|
|
roster.save(SAVE_PATH)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|