import ora from "ora";
const spinner = ora();
spinner.prefixText = "\n";
export const cliLoadingPlugin = ({ nodeId, message }) => (log) => {
    if (log.nodeId === nodeId && log.state === "queued") {
        spinner.start(message);
    }
    if (log.nodeId === nodeId && log.state === "completed") {
        spinner.stop();
    }
};
