mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
'use strict';
|
|
|
|
const chalk = require('chalk');
|
|
|
|
module.exports = (commandName, commandSchema) => {
|
|
const dotsLength = 30;
|
|
|
|
const usage = commandSchema.usage;
|
|
const dots = '.'.repeat(Math.max(dotsLength - commandName.length, 0));
|
|
return `${chalk.yellow(commandName)} ${chalk.dim(dots)} ${usage}`;
|
|
};
|