newDiffFormat returns a format for use with a diff [formatter.Context].
(source string)
| 15 | |
| 16 | // newDiffFormat returns a format for use with a diff [formatter.Context]. |
| 17 | func newDiffFormat(source string) formatter.Format { |
| 18 | if source == formatter.TableFormatKey { |
| 19 | return defaultDiffTableFormat |
| 20 | } |
| 21 | return formatter.Format(source) |
| 22 | } |
| 23 | |
| 24 | // diffFormatWrite writes formatted diff using the [formatter.Context]. |
| 25 | func diffFormatWrite(fmtCtx formatter.Context, changes client.ContainerDiffResult) error { |
no outgoing calls
searching dependent graphs…