text: #!/usr/bin/env node
  
  const program = require('commander');
  const shell = require('shelljs');
  
  const VERSION = '0.0.2';
  const CWD = process.cwd();
  
  program.version(VERSION)
  	.option('-c, --client', 'flag if it is a client project')
  	.parse(process.argv);
  
  // arguments
  let { client } = program;
  
  const makeClient = client ? ' make client;' : '';
  
  async function download() {
  	console.log('downloading starter template...');
  	const command = `curl -Lk https://bit.ly/2J0L3MD > Makefile; make setup;${makeClient}`
  	try {
  		shell.exec(command);
  		return Promise.resolve();
  	} catch(error) {
  		return Promise.reject('error downloading contents');
  	}
  }
  
  async function init() {
  	try {
  		await download();
  		console.log('finished!');
  	} catch(error) {
  		console.error(error);
  	}
  	
  	process.exit();
  }
  
  init();
  
  
  
  
  
  
  
  
  
  