1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

add quiet mode

This commit is contained in:
Kelly Brazil
2019-11-06 21:09:09 -08:00
parent 9c1d893e16
commit 2ee392eeff

View File

@ -8,7 +8,7 @@ Limitations:
for lines with spaces in the program_name for lines with spaces in the program_name
""" """
import string import string
import jc from jc.utils import *
def process(proc_data): def process(proc_data):
@ -87,10 +87,12 @@ def parse_post(raw_data):
return raw_data return raw_data
def parse(data, raw=False): def parse(data, raw=False, quiet=False):
# compatible options: linux, darwin, cygwin, win32, aix, freebsd # compatible options: linux, darwin, cygwin, win32, aix, freebsd
jc.jc.compatibility(__name__, compatible = ['linux']
['linux'])
if not quiet:
compatibility(__name__, compatible)
cleandata = data.splitlines() cleandata = data.splitlines()
raw_output = [] raw_output = []