Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Allow start flag to be provided, skip prompts #196

Merged
merged 1 commit into from
Jun 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ module.exports = {
alias: 'l',
description: 'Quick setup for a local installation of Ghost',
flag: true
}, {
name: 'start',
description: 'Automatically start Ghost without prompting',
flag: true
}].concat(advancedOptions)
},

Expand Down
2 changes: 2 additions & 0 deletions lib/commands/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ module.exports.execute = function execute(options) {
// sure we're set up in development mode
this.development = true;
process.env.NODE_ENV = this.environment = 'development';
} else {
context.start = options.start || false;
}

return configCommand.execute.call(this, null, null, options).then((config) => {
Expand Down