Coverage for aipyapp/cli/command/cmd_info.py: 0%
14 statements
« prev ^ index » next coverage.py v7.10.3, created at 2025-08-11 12:02 +0200
« prev ^ index » next coverage.py v7.10.3, created at 2025-08-11 12:02 +0200
1import sys
3from ... import T
4from .base_parser import ParserCommand
5from .utils import print_table
7class InfoCommand(ParserCommand):
8 name = 'info'
9 description = T('System information')
11 def execute(self, args):
12 ctx = self.manager.context
13 tm = ctx.tm
14 settings = tm.settings
15 status = tm.get_status()
17 info = [
18 (T('Current configuration directory'), str(settings.config_dir)),
19 (T('Current working directory'), status['workdir']),
20 (T('Current LLM'), status['client']),
21 (T('Current role'), status['role']),
22 (T('Current display style'), T(status['display'])),
23 ('Python', sys.executable),
24 (T('Python version'), sys.version),
25 (T('Python base prefix'), sys.base_prefix),
26 ]
28 print_table(info, title=T("System information"), headers=[T("Parameter"), T("Value")])