Skip to content

Commit

Permalink
Change compose command
Browse files Browse the repository at this point in the history
This changes the `compose` command to `sbomcompose` because it
conflicts with the Unix `compose` command

Signed-off-by: Ivana Atanasova <[email protected]>
  • Loading branch information
ivanayov committed Nov 24, 2022
1 parent 434e021 commit 4c8f1ec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <path-to-dir-with-spdx-files-to-compose> [flags]`
3. `./sbomcompose -d <path-to-dir-with-spdx-files-to-compose> [flags]`


* `flags`:
Expand Down
2 changes: 1 addition & 1 deletion cli/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/vmware-samples/sbom-composer/compose
module github.com/vmware-samples/sbom-composer/sbomcompose

go 1.16

Expand Down
2 changes: 1 addition & 1 deletion cli/sbom_compose.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func init() {
}

var composeCommand = &cobra.Command{
Use: "compose",
Use: "sbomcompose",
Short: "Compose micro SBOM documents",
Long: "TDB",
Example: "TDB",
Expand Down
4 changes: 2 additions & 2 deletions parser/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"strings"
"os"
"strings"

"github.com/spdx/tools-golang/builder"
"gopkg.in/yaml.v3"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4c8f1ec

Please sign in to comment.