code: function createWoniuSite(template){
  
  		var version='';
  		var templateName = '';
  		var conf ='';
  		if(template){
  	        template = template.split('@');
  	        version = template.length ===2 ? template[1] : 'master';
  	        templateName = template[0];
  	        conf = templates[templateName];
  
  	        if(!conf){
  	        	fis.log.error('invalid init command, see -h');
  	        }
  	        getGameChoice(conf,templateName);
  		}else{
  			var questions = [{
  				type:   'list',               // input, confirm, list, rawlist, password
  				name:   'template',               // (String) The name to use when storing the answer in the anwers hash
  				message:'choose a project:',               // The question to print
  				default:'site',               // Default value(s) to use if nothing is entered
  				choices:templateLists,               // Choices array or a function returning a choices array
  				// validate:function(input){ //Receive the user input and should return true if the value is valid, and an error message (String) otherwise. If false is returned, a default error message is provided.
  				// },
  				// when:function(answers){   // Receive the current user answers hash and should return true or false depending on whether or not this question should be asked
  				// }
  			}];
  			inquirer.prompt(questions, function( answers ) {
  				templateName = answers.template;
  				conf = templates[templateName];			
  				getGameChoice(conf,templateName);
  			});
  		}
  }
docs: woniu网处理逻辑