github.com/lineaje-labs/syft@v0.98.1-0.20231227153149-9e393f60ff1b/cmd/syft/cli/options/file_contents.go (about)

     1  package options
     2  
     3  import (
     4  	"github.com/anchore/syft/syft/source"
     5  	"github.com/lineaje-labs/syft/internal/file"
     6  )
     7  
     8  type fileContents struct {
     9  	Cataloger          scope    `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"`
    10  	SkipFilesAboveSize int64    `yaml:"skip-files-above-size" json:"skip-files-above-size" mapstructure:"skip-files-above-size"`
    11  	Globs              []string `yaml:"globs" json:"globs" mapstructure:"globs"`
    12  }
    13  
    14  func defaultFileContents() fileContents {
    15  	return fileContents{
    16  		Cataloger: scope{
    17  			Scope: source.SquashedScope.String(),
    18  		},
    19  		SkipFilesAboveSize: 1 * file.MB,
    20  	}
    21  }