Files
LangBot/pkg/core/notes/n003_print_version.py
2025-04-20 15:01:54 +08:00

22 lines
465 B
Python

from __future__ import annotations
import typing
import os
import sys
import logging
from .. import note, app
@note.note_class("PrintVersion", 3)
class PrintVersion(note.LaunchNote):
"""Print Version Information
"""
async def need_show(self) -> bool:
return True
async def yield_note(self) -> typing.AsyncGenerator[typing.Tuple[str, int], None]:
yield f"Current Version: {self.ap.ver_mgr.get_current_version()}", logging.INFO