Skip to content

Commit

Permalink
#185 rename setLoggingLevel to reflect that it's not internal
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jan 25, 2022
1 parent 98e7b02 commit f26f4f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.retrieve(argv.BU, argv.TYPE);
},
})
Expand All @@ -51,7 +51,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.deploy(argv.BU, argv.TYPE);
},
})
Expand All @@ -65,7 +65,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.initProject(argv.credentialsName, argv.skipInteraction);
},
})
Expand All @@ -80,7 +80,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.findBUs(argv.credentialsName);
},
})
Expand All @@ -94,7 +94,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.badKeys(argv.BU);
},
})
Expand All @@ -116,7 +116,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.document(argv.BU, argv.TYPE);
},
})
Expand All @@ -141,7 +141,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.deleteByKey(argv.BU, argv.TYPE, argv.EXTERNALKEY);
},
})
Expand Down Expand Up @@ -170,7 +170,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.retrieveAsTemplate(argv.BU, argv.TYPE, argv.NAME, argv.MARKET);
},
})
Expand Down Expand Up @@ -198,7 +198,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.buildDefinition(argv.BU, argv.TYPE, argv.NAME, argv.MARKET);
},
})
Expand All @@ -222,7 +222,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.buildDefinitionBulk(argv.LISTNAME, argv.TYPE, argv.NAME);
},
})
Expand All @@ -231,7 +231,7 @@ yargs
aliases: ['st'],
desc: 'lets you choose what metadata types to retrieve',
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.selectTypes();
},
})
Expand All @@ -240,7 +240,7 @@ yargs
aliases: ['et'],
desc: 'explains metadata types that can be retrieved',
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.explainTypes();
},
})
Expand All @@ -261,7 +261,7 @@ yargs
});
},
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.createDeltaPkg(argv);
},
})
Expand All @@ -270,7 +270,7 @@ yargs
aliases: ['up'],
desc: 'Add NPM dependencies and IDE configuration files to your project',
handler: (argv) => {
Mcdev._setLoggingLevel(argv);
Mcdev.setLoggingLevel(argv);
Mcdev.upgrade(argv.skipInteraction);
},
})
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class Mcdev {
* @param {Boolean} [argv.debug] enables developer output & features
* @returns {void}
*/
static _setLoggingLevel(argv) {
static setLoggingLevel(argv) {
if (argv.silent) {
// only errors printed to CLI
Util.logger.level = 'error';
Expand Down

0 comments on commit f26f4f9

Please sign in to comment.