1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-25 13:40:08 +01:00

🔧 Add --ch parameter for CLI launches

This commit is contained in:
2026-02-24 15:14:33 +01:00
parent f85d51290b
commit 88c02f1190
2 changed files with 9 additions and 0 deletions

View File

@@ -91,6 +91,10 @@
argument = "--v" argument = "--v"
isEnabled = "NO"> isEnabled = "NO">
</CommandLineArgument> </CommandLineArgument>
<CommandLineArgument
argument = "--ch"
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument <CommandLineArgument
argument = "--cli" argument = "--cli"
isEnabled = "NO"> isEnabled = "NO">

View File

@@ -73,6 +73,11 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
Log.info("Extra CLI mode has been activated via --cli flag.") 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") { if state.container.filesystem.fileExists("~/.config/phpmon/verbose") {
logger.verbosity = .cli logger.verbosity = .cli
Log.info("Extra CLI mode is on (`~/.config/phpmon/verbose` exists).") Log.info("Extra CLI mode is on (`~/.config/phpmon/verbose` exists).")