Skip to content

Commit b9c8c85

Browse files
authored
Fix broken scan output (#260)
1 parent 3652cf5 commit b9c8c85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/cmd/scan/scan.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ If the given path contains a git repository all flags but "integration" will be
6868
PreRun: func(cmd *cobra.Command, _ []string) {
6969
_ = viper.BindPFlags(cmd.Flags())
7070
},
71+
RunE: func(cmd *cobra.Command, args []string) error {
72+
return RunE(&scanner)(cmd, args)
73+
},
7174
}
7275
cmd.Flags().StringVarP(&repositoryName, RepositoryFlag, "r", "", "repository name")
7376
cmd.Flags().StringVarP(&commitName, CommitFlag, "c", "", "commit hash")

0 commit comments

Comments
 (0)