text: import { spinnerTree, logger, progressBar, ProgressMode } from '@nexo-stack/cli';
  const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
  spinnerTree.start('This is a super simple spinner');
  await sleep(1000);
  spinnerTree.append([
      {
          label: 'This is a super simple spinner x2',
          id: 'spinner2'
      }
  ]);
  await sleep(1000);
  logger.info('Messages can be logged while a widget is running');
  await sleep(500);
  spinnerTree.succeed('spinner2', 'Its finished!');
  progressBar.start(ProgressMode.INDETERMINATE);
  await sleep(4000);
  progressBar.setMode(ProgressMode.LINEAR);
  let percent = 1;
  const interval = setInterval(() => {
      percent += percent * 0.1;
      progressBar.setPercent(percent);
      if (percent > 100) {
          progressBar.setPercent(100);
          progressBar.succeed();
          clearInterval(interval);
      }
  }, 100);