tasks/ls.js
function ls() {
  const vault = path.join(os.homedir(), '.snap');
  const list = shell.ls(vault);
  if (!list.length) {
    console.log("\nIt seems you don't have anything saved...");
    console.log(`You can run ${chalk.yellow('snap save')} to save a directory or Git repo for future use!`);
    console.log(`Run ${chalk.yellow('snap save -h')} for more info.\n`);
    return;
  }

  console.log('\nThe following boilerplates have been saved...');
  console.log(`Run ${chalk.yellow('snap <boilerplate-name> <project-directory>')} to get started with your new project!`);
  for (const bplate of list) {
    console.log(`  ○ ${bplate}`);
  }
  console.log();
}
function ls() {
  const vault = path.join(os.homedir(), '.snap');
  const list = shell.ls(vault);
  if (!list.length) {
    console.log("\nIt seems you don't have anything saved...");
    console.log(`You can run ${chalk.yellow('snap save')} to save a directory or Git repo for future use!`);
    console.log(`Run ${chalk.yellow('snap save -h')} for more info.\n`);
    return;
  }

  console.log('\nThe following boilerplates have been saved...');
  console.log(`Run ${chalk.yellow('snap <boilerplate-name> <project-directory>')} to get started with your new project!`);
  for (const bplate of list) {
    console.log(`  ○ ${bplate}`);
  }
  console.log();
}
snap ls list saved boilerplates