UNPKG

sls3-legacy

Version:

SLS3 Legacy - A fork of Serverless Framework v3

13 lines (9 loc) 326 B
'use strict'; 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)}`; };