Add source bundle validation and inspection
This commit is contained in:
@@ -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.
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user