in generate.py [0:0]
def obj_to_cli(o, versions):
for chan in o["channels"]:
if chan not in versions.keys():
raise ValueError
out_file_names = get_out_names(o["process_name"], chan, o["ipc_actor"] if "ipc_actor" in o.keys() else None)
html_file = "_dist/{}".format(out_file_names)
json_file = "{}".format(out_file_names)
base = "python3 crashes.py -n {} -d {} -u {} -q {}".format(html_file, json_file, "https://sql.telemetry.mozilla.org", o["redash"])
if "lower_client_limit" in o.keys():
base += " -l {}".format(o["lower_client_limit"])
if "ipc_actor" in o.keys():
base += " -a {}".format(o["ipc_actor"])
params = [
"version={}".format(versions[chan]),
"process_type={}".format(o["process_name"]),
"channel={}".format(chan)
]
rv = base + " " + " ".join(map(lambda x: "-p {}".format(x), params))
yield rv