I want to study the command in console of openhab ,which file should i read?

i want to study the command in console of openhab ,which file should i read?
if i want to add some filter rules of the command ,what should i do?

http://karaf.apache.org/manual/latest/

https://docs.openhab.org/administration/console.html