Skip to content

Commit

Permalink
feat: revamp dredd init
Browse files Browse the repository at this point in the history
Close #525
Close #878
Close #879
  • Loading branch information
honzajavorek committed Aug 9, 2018
1 parent 36b4f3b commit bae5163
Show file tree
Hide file tree
Showing 3 changed files with 381 additions and 209 deletions.
28 changes: 1 addition & 27 deletions src/cli.js
Expand Up @@ -147,34 +147,8 @@ Example:
if (this.argv._[0] === 'init' || this.argv.init === true) {
logger.silly('Starting interactive configuration.');
this.finished = true;
interactiveConfig.run(this.argv, (config) => {
interactiveConfig(this.argv, (config) => {
configUtils.save(config);
console.log('');
console.log('Configuration saved to dredd.yml');
console.log('');
if (config.language === 'nodejs') {
console.log('Run test now, with:');
} else {
console.log('Install hooks handler and run Dredd test with:');
}
console.log('');
if (config.language === 'ruby') {
console.log(' $ gem install dredd_hooks');
} else if (config.language === 'python') {
console.log(' $ pip install dredd_hooks');
} else if (config.language === 'php') {
console.log(' $ composer require ddelnano/dredd-hooks-php --dev');
} else if (config.language === 'perl') {
console.log(' $ cpanm Dredd::Hooks');
} else if (config.language === 'go') {
console.log(' $ go get github.com/snikch/goodman/cmd/goodman');
} else if (config.language === 'rust') {
console.log(' $ cargo install dredd-hooks');
}

console.log(' $ dredd');
console.log('');

this._processExit(0);
});

Expand Down

0 comments on commit bae5163

Please sign in to comment.