(hex, flag string)
| 505 | } |
| 506 | |
| 507 | func docsFormatColor(hex, flag string) (*docs.OptionalColor, error) { |
| 508 | color, err := docsformat.Color(hex, flag) |
| 509 | if err != nil { |
| 510 | return nil, usage(err.Error()) |
| 511 | } |
| 512 | return color, nil |
| 513 | } |
| 514 | |
| 515 | func (f DocsFormatFlags) withLinkFlags(link string, noLink bool) DocsFormatFlags { |
| 516 | f.link = link |
no test coverage detected