package cli import ( "context" "fmt" "io" "gitea.maximumdirect.net/eric/distributor/internal/app" ) func inspectCommand(ctx context.Context, args []string, stdout, stderr io.Writer) int { if hasHelp(args) { printInspectHelp(stdout) return exitOK } path, ok := parseOptionalPathArg(stderr, "inspect", args) if !ok { return exitUsage } if err := app.Inspect(ctx, app.InspectOptions{Path: path, Stdout: stdout}); err != nil { return fail(stderr, err) } return exitOK } func printInspectHelp(w io.Writer) { fmt.Fprint(w, `Usage: distributor inspect Print a normalized summary of local source bundles. `) }