importer

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = log.NewLogger(log.INFO)

Functions

func GetStaticBlocks

func GetStaticBlocks(normalizedPatternData *normalizer.NormalizationData) []string

GetStaticBlocks filters out the regex sections and returns the static text blocks

func Import added in v0.10.0

func Import(cfg *viper.Viper) error

Import validates, preprocesses, and copies templates into resources (or into external paths) This implements --addAll (which probably be changed to license-scanner import ...) The --addAll <string> value is the input dir. Output is determined by spdxPath/spdx/customPath/custom flags.

func Update added in v0.10.0

func Update(cfg *viper.Viper) error

Update validates, preprocesses, and updates preprocessed prechecks in resources (or into external paths) This implements --updateAll (which probably be changed to license-scanner update ...) The args spdxPath/spdx/customPath/custom are used to determine which resources (or external dir) are updated in-place.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL