From 36dd389e105a363d5de540863cb2869c96fb929f Mon Sep 17 00:00:00 2001 From: Gemini CLI Date: Thu, 5 Mar 2026 21:22:57 +0100 Subject: [PATCH] feat: introduce versioning (v1.2.0) and display it in dashboard --- src/strategies/ping_pong_bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strategies/ping_pong_bot.py b/src/strategies/ping_pong_bot.py index 59c20cc..137486e 100644 --- a/src/strategies/ping_pong_bot.py +++ b/src/strategies/ping_pong_bot.py @@ -39,6 +39,7 @@ logger = logging.getLogger("PingPongBot") class PingPongBot: def __init__(self, config_path="config/ping_pong_config.yaml"): + self.version = "1.2.0" with open(config_path, 'r') as f: self.config = yaml.safe_load(f) @@ -135,7 +136,7 @@ class PingPongBot: def render_dashboard(self): """Render a clean summary of the bot state""" # 1. Config Table - cfg_table = Table(title="[bold cyan]PING-PONG BOT CONFIG[/]", box=box.ROUNDED, expand=True) + cfg_table = Table(title=f"[bold cyan]PING-PONG BOT CONFIG (v{self.version})[/]", box=box.ROUNDED, expand=True) cfg_table.add_column("Property", style="dim") cfg_table.add_column("Value", style="bold white") cfg_table.add_row("Symbol", f"{self.symbol} ({self.interval}m)")