feat: export as json
This commit is contained in:
parent
6d8c5e96c9
commit
124eb02e97
|
@ -28,8 +28,11 @@ async function main(options) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
goproTelemetry(res, _.omit(options, ['_', 'input', 'output']), telemetry => {
|
goproTelemetry(res, _.omit(options, ['_', 'input', 'output']), telemetryData => {
|
||||||
fs.writeFileSync(options.output, telemetry);
|
if (!_.isString(telemetryData)) {
|
||||||
|
telemetryData = JSON.stringify(telemetryData);
|
||||||
|
}
|
||||||
|
fs.writeFileSync(options.output, telemetryData);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user