From 88c02f1190015d9f5c9d9336aec7716564316c68 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Tue, 24 Feb 2026 15:14:33 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Add=20--ch=20parameter=20for=20C?= =?UTF-8?q?LI=20launches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xcshareddata/xcschemes/PHP Monitor EAP.xcscheme | 4 ++++ phpmon/Domain/App/AppDelegate.swift | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor EAP.xcscheme b/PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor EAP.xcscheme index f0894b86..fd68bb83 100644 --- a/PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor EAP.xcscheme +++ b/PHP Monitor.xcodeproj/xcshareddata/xcschemes/PHP Monitor EAP.xcscheme @@ -91,6 +91,10 @@ argument = "--v" isEnabled = "NO"> + + diff --git a/phpmon/Domain/App/AppDelegate.swift b/phpmon/Domain/App/AppDelegate.swift index 20821ea9..b3908f34 100644 --- a/phpmon/Domain/App/AppDelegate.swift +++ b/phpmon/Domain/App/AppDelegate.swift @@ -73,6 +73,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele Log.info("Extra CLI mode has been activated via --cli flag.") } + if CommandLine.arguments.contains("--ch") { + Log.info("Displaying command history window (`--ch` flag).") + CommandHistoryWC.show() + } + if state.container.filesystem.fileExists("~/.config/phpmon/verbose") { logger.verbosity = .cli Log.info("Extra CLI mode is on (`~/.config/phpmon/verbose` exists).")