function show(name) {
  const root = path.join(os.homedir(), '.snap', name);
  if (!fs.pathExistsSync(root)) {
    console.log(`\n${chalk.red('Error:')} ${chalk.yellow(name)} does not exist.\n`);
    return;
  }

  const tree = walk(root, 0);
  console.log();
  printTree(tree);
  console.log();
}
function show(name) {
  const root = path.join(os.homedir(), '.snap', name);
  if (!fs.pathExistsSync(root)) {
    console.log(`\n${chalk.red('Error:')} ${chalk.yellow(name)} does not exist.\n`);
    return;
  }

  const tree = walk(root, 0);
  console.log();
  printTree(tree);
  console.log();
}
function show ( name ) { const root = path . join ( os . homedir ( ) , '.snap' , name ) ; if ( ! fs . pathExistsSync ( root ) ) { console . log ( ` \n ${ chalk . red ( 'Error:' ) } ${ chalk . yellow ( name ) } \n ` ) ; return ; } const tree = walk ( root , 0 ) ; console . log ( ) ; printTree ( tree ) ; console . log ( ) ; }
snap show <name> display the file structure of a boilerplate
snap show <name > display the file structure of a boilerplate