(cmd *cobra.Command, args []string)
| 119 | } |
| 120 | |
| 121 | func runAuditCommand(cmd *cobra.Command, args []string) error { |
| 122 | opts, err := getAuditCommandOptions(cmd) |
| 123 | if err != nil { |
| 124 | return err |
| 125 | } |
| 126 | args, handled, err := resolveAuditCommandArgs(args, opts.stdin) |
| 127 | if err != nil || handled { |
| 128 | return err |
| 129 | } |
| 130 | if len(args) == 1 { |
| 131 | return runAuditSingle(cmd.Context(), args[0], opts) |
| 132 | } |
| 133 | return runAuditMulti(cmd.Context(), args, opts.repoFlag, opts.outputDir, opts.verbose, opts.jsonOutput, opts.format, opts.artifacts) |
| 134 | } |
| 135 | |
| 136 | func getAuditCommandOptions(cmd *cobra.Command) (auditCommandOptions, error) { |
| 137 | opts := auditCommandOptions{} |
nothing calls this directly
no test coverage detected