diff --git a/README.md b/README.md index 0337b0a..8835936 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ sbom-composer is a tool that serves for composing two or more micro SBOMs into a 1. `cd cli/` 2. `go build` -3. `./compose -d [flags]` +3. `./sbomcompose -d [flags]` * `flags`: diff --git a/cli/go.mod b/cli/go.mod index f92beb1..ab2d4a6 100644 --- a/cli/go.mod +++ b/cli/go.mod @@ -1,4 +1,4 @@ -module github.com/vmware-samples/sbom-composer/compose +module github.com/vmware-samples/sbom-composer/sbomcompose go 1.16 diff --git a/cli/sbom_compose.go b/cli/sbom_compose.go index 4edd1b7..162bdfb 100644 --- a/cli/sbom_compose.go +++ b/cli/sbom_compose.go @@ -36,7 +36,7 @@ func init() { } var composeCommand = &cobra.Command{ - Use: "compose", + Use: "sbomcompose", Short: "Compose micro SBOM documents", Long: "TDB", Example: "TDB", diff --git a/parser/config.go b/parser/config.go index a9ff51b..893b01a 100644 --- a/parser/config.go +++ b/parser/config.go @@ -7,8 +7,8 @@ import ( "encoding/json" "fmt" "io/ioutil" - "strings" "os" + "strings" "github.com/spdx/tools-golang/builder" "gopkg.in/yaml.v3" @@ -104,7 +104,7 @@ func readConfFile(file string) []byte { conf, err := ioutil.ReadFile(file) if err != nil { - fmt.Println("Error: failed reading yaml file. SPDX document not generated.\n") + fmt.Println("error: failed reading yaml file. SPDX document not generated.", err) os.Exit(1) } return conf