mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
* feat(v4): improve help formatting * fix(help): remove invoke local from main commands * fix(help): remove comment
13 lines
330 B
JavaScript
13 lines
330 B
JavaScript
import utils from '@serverlessinc/sf-core/src/utils.js';
|
|
|
|
const { style } = utils;
|
|
|
|
export default (commandName, commandSchema) => {
|
|
const indentFillLength = 30;
|
|
|
|
const usage = commandSchema.usage;
|
|
return ` ${commandName} ${' '.repeat(
|
|
Math.max(indentFillLength - commandName.length, 0)
|
|
)} ${style.aside(usage)}`;
|
|
};
|