(out io.Writer, vd versionInfo, tmpl *template.Template)
| 230 | } |
| 231 | |
| 232 | func prettyPrintVersion(out io.Writer, vd versionInfo, tmpl *template.Template) error { |
| 233 | t := tabwriter.NewWriter(out, 20, 1, 1, ' ', 0) |
| 234 | err := tmpl.Execute(t, vd) |
| 235 | _, _ = t.Write([]byte("\n")) |
| 236 | _ = t.Flush() |
| 237 | return err |
| 238 | } |
| 239 | |
| 240 | func newVersionTemplate(templateFormat string) (*template.Template, error) { |
| 241 | switch templateFormat { |
searching dependent graphs…