mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
13 lines
314 B
JavaScript
13 lines
314 B
JavaScript
'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)}`;
|
|
};
|