* Formats a command or option line with its description. * * @param {string} commandOrOption - The command or option. * @param {string} description - The description of the command or option. * @returns {string} - The formatted line.
(commandOrOption, description)
| 37 | * @returns {string} - The formatted line. |
| 38 | */ |
| 39 | function formatLine(commandOrOption, description) { |
| 40 | const indentFillLength = 45 |
| 41 | const spacing = ' '.repeat(indentFillLength - commandOrOption.length) |
| 42 | return ` ${commandOrOption}${spacing}${style.aside(description)}` |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Displays the help information for the Serverless Framework Compose. |