INNER CODE UNIT · Go
main
aquasecurity/starboard · cmd/scanner-aqua/main.go:26
func main() {
if err := run(); err != nil {
log.Fatalf("error: %s", err.Error())
}
}
func run() error {
opt := cli.Options{}
rootCmd := &cobra.Command{
Use: "scanner",
Args: cobra.ExactArgs(1),
SilenceErrors: true,
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
report, err := scan(opt, args[0])
if err != nil {
return err