UNPKG

@bitnami/readme-generator-for-helm

Version:

Autogenerate READMEs tables and OpenAPI schemas for Helm Charts

31 lines (25 loc) 601 B
/* * Copyright Broadcom, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ class Section { constructor(name) { /* Section information */ // The section name this.name = name; // The section description, line by line this.descriptionLines = []; // The parameters within this section this.parameters = []; } addDescriptionLine(line) { this.descriptionLines.push(line); } addParameter(parameter) { this.parameters.push(parameter); } get description() { return this.descriptionLines.join('\r\n'); } } module.exports = Section;