Merge branch 'master' of github.com:garabik/grc

This commit is contained in:
Radovan Garabík 2016-07-20 19:56:11 +02:00
commit 021439191c
3 changed files with 8 additions and 4 deletions

4
grc
View File

@ -3,11 +3,11 @@
import os, re, string, sys, getopt, signal
def version():
print ("Generic Colouriser 1.9")
print ("Generic Colouriser 1.9.1rc1")
sys.exit()
def help():
print("""Generic Colouriser 1.9
print("""Generic Colouriser 1.9.1rc1
grc [options] command [args]
Options:")
-e --stderr redirect stderr. If this option is selected,

View File

@ -98,3 +98,6 @@ conf.docker-machinels
(^|[/\w\.]+/)docker info\s?
conf.dockerinfo
# journalctl command
(^|[/\w\.]+/)journalctl?\s
conf.log

5
grcat
View File

@ -156,8 +156,9 @@ while not is_last:
ll['colours'] = colstrings
cs = ll['count']
ll['regexp'] = re.compile(ll['regexp']).search
regexplist.append(ll)
if ll.has_key('regexp'):
ll['regexp'] = re.compile(ll['regexp']).search
regexplist.append(ll)
prevcolour = colours['default']
prevcount = "more"