spdx_tools.spdx3.writer.console.bom_writer

 1# SPDX-FileCopyrightText: 2023 spdx contributors
 2#
 3# SPDX-License-Identifier: Apache-2.0
 4from beartype.typing import TextIO
 5
 6from spdx_tools.spdx3.model import Bom
 7from spdx_tools.spdx3.writer.console.bundle_writer import write_bundle
 8
 9
10def write_bom(bom: Bom, text_output: TextIO, heading: bool = True):
11    if heading:
12        text_output.write("## Bom\n")
13    write_bundle(bom, text_output, False)
def write_bom( bom: spdx_tools.spdx3.model.bom.Bom, text_output: <class 'TextIO'>, heading: bool = True):
11def write_bom(bom: Bom, text_output: TextIO, heading: bool = True):
12    if heading:
13        text_output.write("## Bom\n")
14    write_bundle(bom, text_output, False)