gerty
gerty copied to clipboard
feature request: generic exclusion regex for plugins
I see the Gerty.CiscoIOS, Gerty.CiscoLike having the regex exclusion "ntp-clock-period.regexp". However, as far as I understand, there is no facility to exclude strings from other commands. I tried this :
ios.sh-version.command = show version ios.sh-version.exclude = uptime uptime.regexp = uptime\s+is
but gerty doesn't use my regex and doesn't filter out my "uptime" string.
Feature request : a plugin having the possibility of post-processing output of previous commands would be extremely useful.
- simple cases : do a regex like above
- extreme cases, forking an external shell command used as filter.
please test: https://github.com/ssinyagin/gerty/commit/595623c348871ae18c4144a11a305f915e9334ba