CommandWatcher

interface CommandWatcher

用于监控 Command 的接口.

Author

M8Test, [email protected], https://m8test.com

Functions

Link copied to clipboard
abstract fun afterExecute(listener: (fullCommand: String, command: Command, result: Result) -> Unit)

添加在命令运行之后执行的监听器

Link copied to clipboard
abstract fun beforeExecute(listener: (fullCommand: String, command: Command) -> Unit)

添加在命令运行之前执行的监听器