Skip to content

Commit

Permalink
refactor(CLI): Rely on newly introduced log style functions
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Sep 29, 2021
1 parent 07aed34 commit e070110
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/cli/render-help/general.js
Expand Up @@ -19,7 +19,7 @@ module.exports = (loadedPlugins) => {
'sls <command> <options>',
null,
style.aside('Get started'),
`Run ${style.error('serverless')} to interactively setup a project.`,
`Run ${style.strong('serverless')} to interactively setup a project.`,
'Use --help-interactive to display the interactive setup help.',
null,
style.aside('Monitoring'),
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/render-help/interactive-setup.js
Expand Up @@ -8,7 +8,7 @@ const renderOptions = require('./options');
module.exports = () => {
writeText(
style.aside('Interactive CLI'),
`Run ${style.error('serverless')} to interactively setup a project.`,
`Run ${style.strong('serverless')} to interactively setup a project.`,
null,
style.aside('Options')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/plugin/lib/utils.js
Expand Up @@ -74,7 +74,7 @@ module.exports = {
const orderedPlugins = _.orderBy(plugins, ['name'], ['asc']);
orderedPlugins.forEach((plugin) => {
message += `${chalk.yellow.underline(plugin.name)} - ${plugin.description}\n`;
writeText(`${style.link(plugin.name)} ${style.aside(plugin.description)}`);
writeText(`${style.title(plugin.name)} ${style.aside(plugin.description)}`);
});
// remove last two newlines for a prettier output
message = message.slice(0, -2);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -26,7 +26,7 @@
"@serverless/components": "^3.17.0",
"@serverless/dashboard-plugin": "^5.4.4",
"@serverless/platform-client": "^4.3.0",
"@serverless/utils": "^5.16.0",
"@serverless/utils": "^5.17.0",
"ajv": "^6.12.6",
"ajv-keywords": "^3.5.2",
"archiver": "^5.3.0",
Expand Down

0 comments on commit e070110

Please sign in to comment.