UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

12 lines (8 loc) 307 B
'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}`; };