Skip to content

Commit

Permalink
Fix cordova config list command
Browse files Browse the repository at this point in the history
  • Loading branch information
raphinesse committed Apr 10, 2019
1 parent 88cc5d9 commit 15d0a4c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,7 @@ module.exports = function (inputArgs) {

// If "ls" is called
if (isConfigCmd && (inputArgs[3] === 'ls' || inputArgs[3] === 'list')) {
fs.readFile(conf.path, 'utf8', function (err, data) {
if (err) {
logger.error(err);
} else {
logger.log(data);
}
});
logger.results(JSON.stringify(conf.all, null, 4));
}

return Promise.resolve().then(function () {
Expand Down

0 comments on commit 15d0a4c

Please sign in to comment.