Nog CLI Developer Guide - v0.11.0
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Prepends the standard nog-cli header to the first node of an AST array.

      Parameters

      • nodes: Node[]

        The existing AST nodes for the file.

      • cliVersion: string

        The version of nog-cli.

      • specTitle: string
      • specVersion: string

        The version of the OpenAPI specification.

      Returns Node[]

      The updated array of nodes with the header attached to the first node.