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:
@ -8,7 +8,7 @@ Limitations:
|
||||
for lines with spaces in the program_name
|
||||
"""
|
||||
import string
|
||||
import jc
|
||||
from jc.utils import *
|
||||
|
||||
|
||||
def process(proc_data):
|
||||
@ -87,10 +87,12 @@ def parse_post(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
|
||||
jc.jc.compatibility(__name__,
|
||||
['linux'])
|
||||
compatible = ['linux']
|
||||
|
||||
if not quiet:
|
||||
compatibility(__name__, compatible)
|
||||
|
||||
cleandata = data.splitlines()
|
||||
raw_output = []
|
||||
|
Reference in New Issue
Block a user