var ora=require("ora"),chalk=require("chalk"),spinner=ora(),lastMsg=null;exports.logWithSpinner=function(s,n){n||(n=s,s=chalk.green("✔")),lastMsg&&spinner.stopAndPersist({symbol:lastMsg.symbol,text:lastMsg.text}),spinner.text=" "+n,lastMsg={symbol:s+" ",text:n},spinner.start()},exports.stopSpinner=function(s){spinner.isSpinning&&(lastMsg&&!1!==s?spinner.stopAndPersist({symbol:lastMsg.symbol,text:lastMsg.text}):spinner.stop(),lastMsg=null)},exports.failSpinner=function(s){spinner.fail(s)};