ModuleDebugString gets a debug string with Module information. This can be printed to stderr, debug logged, etc, while debugging.
(ctx context.Context, module bufmodule.Module)
| 41 | // |
| 42 | // This can be printed to stderr, debug logged, etc, while debugging. |
| 43 | func ModuleDebugString(ctx context.Context, module bufmodule.Module) (string, error) { |
| 44 | printer := indent.NewPrinter(" ") |
| 45 | if err := printModule(ctx, printer, module); err != nil { |
| 46 | return "", err |
| 47 | } |
| 48 | return printer.String() |
| 49 | } |
| 50 | |
| 51 | // ModuleReadBucketDebugString gets a debug string with ModuleReadBucket information. |
| 52 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…