serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
13 lines (9 loc) • 314 B
JavaScript
;
const { style } = require('@serverless/utils/log');
module.exports = (commandName, commandSchema) => {
const indentFillLength = 30;
const usage = commandSchema.usage;
return `${commandName} ${' '.repeat(
Math.max(indentFillLength - commandName.length, 0)
)} ${style.aside(usage)}`;
};