Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Replace exec module with built-in child_process.exec
Browse files Browse the repository at this point in the history
  • Loading branch information
gakimball committed Dec 4, 2015
1 parent 62b6fdf commit ba028e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/commands/new.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var async = require('async');
var bower = require('bower');
var colors = require('colors');
var exec = require('exec');
var exec = require('child_process').exec;
var fs = require('fs');
var inquirer = require('inquirer');
var isRoot = require('is-root');
Expand All @@ -11,6 +11,7 @@ var rimraf = require('rimraf');
var which = require('which');
var util = require('../util');
var EventEmitter = require("events").EventEmitter;
var format = require('util').format;

var repositories = {
sites: {
Expand Down Expand Up @@ -67,7 +68,7 @@ module.exports = function(args, options, callback, ee) {
? repositories.sites[template]
: repositories[framework];

var cmd = ['git', 'clone', repo, projectName];
var cmd = format('git clone %s %s', repo, projectName);
var hello = formatHello(messages.helloYeti, framework);

console.log(util.mascot(framework, hello));
Expand Down
2 changes: 1 addition & 1 deletion lib/util/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function(options) {
if (!options.directory) {
questions.push({
type: 'input',
name: 'name',
name: 'directory',
message: 'What\'s the project called?',
validate: function(input) {
var folder = path.join(process.cwd(), input);
Expand Down

0 comments on commit ba028e9

Please sign in to comment.