Add source bundle validation and inspection

This commit is contained in:
2026-05-31 02:07:30 +00:00
parent 3c2f36a6e5
commit 518944e601
25 changed files with 931 additions and 17 deletions

View File

@@ -21,7 +21,7 @@ func validateCommand(ctx context.Context, args []string, stdout, stderr io.Write
if len(args) == 1 {
path = args[0]
}
if err := app.Validate(ctx, app.ValidateOptions{Path: path}); err != nil {
if err := app.Validate(ctx, app.ValidateOptions{Path: path, Stdout: stdout}); err != nil {
return fail(stderr, err)
}
return exitOK
@@ -31,6 +31,6 @@ func printValidateHelp(w io.Writer) {
fmt.Fprint(w, `Usage:
distributor validate <path>
The validate command is present but bundle validation is not implemented yet.
Validate a local source bundle directory or a tree containing source bundles.
`)
}