diff --git a/src/cortex-tui/src/commands/executor/general.rs b/src/cortex-tui/src/commands/executor/general.rs index e091f4f46..7d1750175 100644 --- a/src/cortex-tui/src/commands/executor/general.rs +++ b/src/cortex-tui/src/commands/executor/general.rs @@ -11,7 +11,7 @@ impl CommandExecutor { pub(super) fn cmd_version(&self) -> CommandResult { CommandResult::Message(format!( - "Cortex TUI v{}\ncortex-core v{}", + "Cortex TUI v{}\nCortex Core v{}", env!("CARGO_PKG_VERSION"), cortex_core::VERSION )) diff --git a/src/cortex-tui/src/commands/executor/tests.rs b/src/cortex-tui/src/commands/executor/tests.rs index 5e05ad996..c60116a1b 100644 --- a/src/cortex-tui/src/commands/executor/tests.rs +++ b/src/cortex-tui/src/commands/executor/tests.rs @@ -365,6 +365,8 @@ fn test_version() { let result = executor.execute_str("/version"); if let CommandResult::Message(msg) = result { assert!(msg.contains("Cortex TUI")); + assert!(msg.contains("Cortex Core")); + assert!(!msg.contains("cortex-core")); } else { panic!("Expected Message"); }