console.log(TextStyle.BLOCK(`You can upgrade DojoCLI on ${os.platform()==='darwin'?'macOS':'Linux'}:`));
ora().start().info(`By executing this command: ${TextStyle.CODE(''+upgradeCommand+'')}`);
console.log('or');
ora().start().info(`By downloading the release from: ${preAlpha?Config.gitlab.cliPreAlphaReleasePage:Config.gitlab.cliReleasePage}`);
}
privateupgrade(upgradeCommand:string){
constupgradeSpinner=ora().start('DojoCLI upgrade is in progress. Please wait...');
constupgradeProcess=spawn(upgradeCommand,{
shell:true
});
upgradeProcess.on('exit',code=>{
code===null||code!==0?upgradeSpinner.fail('DojoCLI upgrade failed... Please try again manually.'):upgradeSpinner.succeed('DojoCLI upgrade is successful.');