MCPcopy Create free account
hub / github.com/github/gh-aw / runAuditCommand

Function runAuditCommand

pkg/cli/audit.go:121–134  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

119}
120
121func 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
136func getAuditCommandOptions(cmd *cobra.Command) (auditCommandOptions, error) {
137 opts := auditCommandOptions{}

Callers

nothing calls this directly

Calls 4

getAuditCommandOptionsFunction · 0.85
resolveAuditCommandArgsFunction · 0.85
runAuditSingleFunction · 0.85
runAuditMultiFunction · 0.85

Tested by

no test coverage detected