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:
@@ -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">
|
||||||
|
|||||||
@@ -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).")
|
||||||
|
|||||||
Reference in New Issue
Block a user