Skip to content

Commit

Permalink
Merge pull request #8 from fnxpt/Spec1.5
Browse files Browse the repository at this point in the history
fix issue with merge multiple files/dirs
  • Loading branch information
fnxpt authored Mar 8, 2024
2 parents 3ae0a0b + 162de0b commit 38a1de7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const (
MergeModeSmart
)

var version = "0.0.6"
var version = "0.0.7"

var rootComponent = &cyclonedx.Component{
BOMRef: "root",
Expand All @@ -36,6 +36,7 @@ var outputFormat = cyclonedx.BOMFileFormatJSON
var output = os.Stdout

func main() {
sbom = utils.NewBOM(rootComponent)
parseArguments()
}

Expand Down Expand Up @@ -79,12 +80,10 @@ func parseArguments() {
})

flag.Func("file", "merges file", func(value string) error {
sbom = utils.NewBOM(rootComponent)
return fileMerge(value)
})

flag.Func("dir", "merges files in directory", func(value string) error {
sbom = utils.NewBOM(rootComponent)
return dirMerge(value)
})

Expand Down
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewBOM(rootComponent *cyclonedx.Component) *cyclonedx.BOM {
{
Type: "application",
Name: "cyclonedx-merge",
Version: "0.0.6",
Version: "0.0.7",
},
},
},
Expand Down

0 comments on commit 38a1de7

Please sign in to comment.